Jump to content

henrik

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by henrik

  1. Hi there,

     

    I've been wasting many hours trying to figure out the following:

     

    - I can use ffmpeg in my Terminal without problems

    - when using ffmpeg in a workflow (bash), I get "[22:27:01.911] ERROR: 0 Record and Transcribe[Run Script] /Users/henrikpetersen/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/F0EC9245-15A1-413D-BCD3-9D2A1FF7C06E: line 24: 19662 Abort trap: 6           $FFMPEG_PATH -f avfoundation -i ":0" -t 5 -loglevel verbose "$RECORDINGS_DIR/$FILENAME" 2>&1"

     

    My script is the following:

     

    # Set the directory and file name
    RECORDINGS_DIR="/Users/henrikpetersen/My_Drive/Recordings"
    mkdir -p "$RECORDINGS_DIR"
    FILENAME="recording_$(date "+%Y-%m-%d_%H-%M-%S").wav"

    # Path to ffmpeg
    FFMPEG_PATH="/opt/homebrew/bin/ffmpeg"

    # Check if ffmpeg is available
    if ! [ -x "$FFMPEG_PATH" ]; then
      echo "ffmpeg not found at $FFMPEG_PATH"
      exit 1
    fi


    # Kill any existing instances of ffmpeg
    pkill -x ffmpeg

    # Wait a moment to ensure the process has been terminated
    sleep 1


    # Record the audio
    $FFMPEG_PATH -f avfoundation -i ":0" -t 5 -loglevel verbose "$RECORDINGS_DIR/$FILENAME" 2>&1


    # Check if recording was successful
    if [ $? -ne 0 ]; then
      echo "Recording failed"
      exit 1
    else
      echo "Recording saved to $RECORDINGS_DIR/$FILENAME"
    fi

     

     

    - Any ideas?

    - I realized that Alfred has Full Disk Access but is not listed under the microphone accessibility; but I also don't know how to trigger the accessibility for Alfred

     

    Best,

    Henrik 

  2. Hi everyone,

     

    I'm already using many text shortcuts that you can set on your Mac or iPhone via System Preferences -> Keyboard -> Text. It's great because it syncs to all of your devices (something Alfred doesn't do since it's not made for phones). However, the shortcuts don't work everywhere (e.g. address bar in Chrome) and they don't have the immediate expansion that Alfred has (you have to press spacebar or select it).

     

    Do you think there would be a way to sync the iCloud text shortcuts to a snippet collection?

     

    All the best,

    Henrik

  3. Great workflow! The only issue I'm having is that I can only add a "front" but not a "back". 

     

    image.thumb.png.ce002633e39af910c566eb536c7b3ec5.png

     

    When I press "back" (in my case "Rückseite"), there is a brief flash of the following image:

     

    image.png.cfbc1f84ed21f1e8421adeeaad870a45.png

     

    Right after, I get the following (blank) Alfred bar with the Anki icon:

     

    image.thumb.png.fb03fade173a629370eaf63bd77bc67a.png

     

    I'm using Catalina 10.15.4.

     

    Any idea what's wrong? Thanks for your help!

     

    Best,

    Henrik

×
×
  • Create New...