Voice-to-shell program, all in a single shell script.
mac
sox
(forrec
)ollama
withphi3
installedwhisper.cpp
- I didn't include it in git repo but it is inlib/whisper.cpp/
in my project. Clone there or change path towhisper.cpp
intvn.sh
.
- take mic input from user and save to wav
- pipe wav to
whisper.cpp
and transcribe to txt - concatenate extracted text with system prompt
- prompt phi using ollama
- extract command between bash tags
- execute response as command