Created
September 10, 2025 18:34
-
-
Save port19x/ed5ccebea8ca54668645a17f3dd5ec5b to your computer and use it in GitHub Desktop.
Dictation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo "Recording. Press C-c to stop..." | |
| ffmpeg -hide_banner -nostats -loglevel quiet -y -f alsa -i default "/tmp/audio.wav" | |
| echo "Transcribing audio..." | |
| whisper "/tmp/audio.wav" --model base --fp16 False --output_format txt -o /tmp/transcription | |
| xclip -selection c < /tmp/transcription/audio.txt | |
| echo "DONE! Check your Clipboard" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The correct arch package for whisper is
python-openai-whisper.Wayland users may substitute
xclipforwl-copy