A real-time voice chat application powered by local AI models. This project allows you to have voice conversations with AI models like Gemma running locally on your machine.
- Real-time speech-to-text conversion
- Local LLM inference using Ollama
- Text-to-speech response generation
- Web interface for interaction
- Phone number interface option
brew install ollama
brew install uvgit clone https://github.com/jesuscopado/local-voice-ai-agent.git
cd local-voice-ai-agentuv venv
source .venv/bin/activate
uv syncollama pull gemma3:1b
# For advanced version
ollama pull gemma3:4bpython local_voice_chat.pypython local_voice_chat_advanced.pyGet a temporary phone number that anyone can call to interact with your AI:
python local_voice_chat_advanced.py --phoneThis will provide you with a temporary phone number that you can call to interact with the AI using your voice.
The application uses:
FastRTCfor WebRTC communicationMoonshinefor local speech-to-text conversionKokorofor text-to-speech synthesisOllamafor running local LLM inference withGemmamodels
When you speak, your audio is:
- Transcribed to text using Moonshine
- Sent to a local LLM via Ollama for processing
- The LLM response is converted back to speech with Kokoro
- The audio response is streamed back to you via FastRTC