Giter Club home page Giter Club logo

ollama-voice-mac's Introduction

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 by adding Mac compatibility with various improvements.

ollama-voice.mp4

Installing and running

  1. Install Ollama on your Mac.
  2. Download the Mistral 7b model using the ollama pull mistral command.
  3. Download an OpenAI Whisper Model (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 and Pip installed.
  7. For Apple silicon support of the PyAudio library you'll need to install Homebrew 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.

ollama-voice-mac's People

Contributors

apeatling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.