A minimal sh script for dictating short memos:
Records microphone audio using FFmpeg, transcribes to text with Whisper, and optionally inserts the result into your terminal via simulated typing.
zshorbash(change the script)ffmpegwhisper-cli(Whisper.cpp)zenityxclipxdotool
Ensure the Whisper model (ggml-base.bin by default) exists at $HOME/repos/whisper.cpp/models/ or change the $MODEL_PATH variable in the script.
./dictate-loop.shFollow the on-screen prompts to record and handle transcriptions.
Add this snippet to your i3 config to trigger speech-to-text with Mod+Shift+S using your script.
# Trigger speech-to-text with Mod+Shift+S
bindsym $mod+Shift+s exec --no-startup-id /path/to/dictate-loop.sh