← Discover MCPs and Agents
l
AgentAI & MLGitHub
local-voice-ai-agent
A real-time voice chat application powered by local AI models
Links
README
From the repo.
Local Voice AI Agent
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.
Features
- Real-time speech-to-text conversion
- Local LLM inference using Ollama
- Text-to-speech response generation
- Web interface for interaction
- Phone number interface option
Prerequisites
Installation
1. Install prerequisites with Homebrew
brew install ollama
brew install uv
2. Clone the repository
git clone https://github.com/jesuscopado/local-voice-ai-agent.git
cd local-voice-ai-agent
3. Set up Python environment and install dependencies
uv venv
source .venv/bin/activate
uv sync
4. Download required models in Ollama
ollama pull gemma3:1b
# For advanced version
ollama pull gemma3:4b
Usage
Basic Voice Chat
python local_voice_chat.py
Advanced Voice Chat (with system prompt)
Web UI (default)
python local_voice_chat_advanced.py
Phone Number Interface
Get a temporary phone number that anyone can call to interact with your AI:
python local_voice_chat_advanced.py --phone
This will provide you with a temporary phone number that you can call to interact with the AI using your voice.
How it works
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
Collected info
- ★ 144 stars
- ⎇ 78 forks
- Language: Python
- Source updated: 9/17/2026