A completely offline voice assistant using Mistral 7b via Ollama and Whisper speech recognition models. This builds on the excellent work of maudoin by adding Mac compatibility with various improvements.
https://github.com/apeatling/ollama-voice-mac/assets/1464705/996abeb7-7e99-451b-8d3b-feb3fecbb82e
ollama pull mistral
command.brew install portaudio
.pip install -r requirements.txt
to install.python assistant.py
to start the assistant.You can improve the quality of the voice by downloading a higher quality version. These instructions work on MacOS 14 Sonoma:
You can set up support for other languages by editing assistant.yaml
. Be sure to download a different Whisper model in your language and change the default modelPath
.