Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apeatling/ollama-voice-mac
Mac compatible Ollama Voice
https://github.com/apeatling/ollama-voice-mac
ai assistant chatbot llm macos mistral ollama speech-recognition voice whisper
Last synced: about 1 month ago
JSON representation
Mac compatible Ollama Voice
- Host: GitHub
- URL: https://github.com/apeatling/ollama-voice-mac
- Owner: apeatling
- License: agpl-3.0
- Created: 2023-12-27T21:20:33.000Z (11 months ago)
- Default Branch: trunk
- Last Pushed: 2024-03-26T14:49:04.000Z (8 months ago)
- Last Synced: 2024-10-10T18:43:04.967Z (about 1 month ago)
- Topics: ai, assistant, chatbot, llm, macos, mistral, ollama, speech-recognition, voice, whisper
- Language: Python
- Homepage:
- Size: 438 KB
- Stars: 413
- Watchers: 11
- Forks: 44
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ollama-voice-mac
A completely offline voice assistant using Mistral 7b via Ollama and Whisper speech recognition models. This builds on the [excellent work of maudoin](https://github.com/maudoin/ollama-voice) by adding Mac compatibility with various improvements.https://github.com/apeatling/ollama-voice-mac/assets/1464705/996abeb7-7e99-451b-8d3b-feb3fecbb82e
## Installing and running
1. Install [Ollama](https://ollama.ai) on your Mac.
2. Download the Mistral 7b model using the `ollama pull mistral` command.
3. Download an [OpenAI Whisper Model](https://github.com/openai/whisper/discussions/63#discussioncomment-3798552) (base.en works fine).
4. Clone this repo somewhere.
5. Place the Whisper model in a /whisper directory in the repo root folder.
6. Make sure you have [Python](https://www.python.org/downloads/macos/) and [Pip](https://pip.pypa.io/en/stable/installation/) installed.
7. For Apple silicon support of the PyAudio library you'll need to install [Homebrew](https://brew.sh) and run `brew install portaudio`.
8. Run `pip install -r requirements.txt` to install.
9. Run `python assistant.py` to start the assistant.## Improving the voice
You can improve the quality of the voice by downloading a higher quality version. These instructions work on MacOS 14 Sonoma:
1. In System Settings select Accessibility > Spoken Content
2. Select System Voice and Manage Voices...
3. For English find "Zoe (Premium)" and download it.
4. Select Zoe (Premium) as your System voice.## Other languages
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`.