- Home
- Skills
- Agents & Orchestration
- Build an Offline Voice Assistant in Python
Works with the AI Agents you already use
Build an Offline Voice Assistant in Python
by Joy Nandy
Build a voice assistant using Python you can talk to and interrupt, running entirely on your own computer, with no cloud AI and no API keys.
Free
Build an Offline Voice Assistant in Python
Example session with this skill installed
Create a local voice assistant loop using my qwen3:4b-instruct model on Ollama. I have an NVIDIA GPU.
- Read your context and instructions
- Compiled the build an offline
I'll use the Offline Voice Pipeline skill. First I'll read the templates and architecture notes, then check your environment. The check only reads your system and installs nothing.
python check_env.py --model qwen3:4b-instruct
Offline voice pipeline: environment check
[OK ] Python 3.11.9 on Windows AMD64
[FAIL] faster-whisper not installed (speech-to-text)
[FAIL] kokoro-onnx not installed (text-to-speech)
[OK ] onnxruntime 1.18.x
[OK ] sounddevice 0.4.x
[OK ] numpy 1.26.x
[OK ] requests 2.31.x
[FAIL] silero_vad.onnx not found
[FAIL] kokoro-v1.0.onnx not found
[FAIL] voices-v1.0.bin not found
[OK ] microphone: Default input device
[OK ] speakers: Default output device
[OK ] Ollama running, 1 model(s) installed
[OK ] model qwen3:4b-instruct is installed
[OK ] NVIDIA GPU detected: faster-whisper can use device='cuda'
I found some things that need fixing before the code can run. Ollama, your model and the NVIDIA GPU are all ready. Missing:
Python packages: faster-whisper and kokoro-onnx
Model files: silero_vad.onnx (~2 MB), kokoro-v1.0.onnx and voices-v1.0.bin (~340 MB together)
Whisper "small" (~460 MB) downloads automatically the first time you run it.
May I run pip install -r requirements.txt and download these model files from their official sources? I won't download or install anything until you say yes.
Connects securely to your tools. The creator never sees your data.
About this skill
Offline Voice Pipeline teaches your AI coding agent to build a private voice assistant that runs entirely on your own computer. Speech recognition, the language model and text-to-speech all run locally, with no cloud AI services and no API keys.
THE PIPELINE Mic -> Silero VAD -> faster-whisper -> Ollama (streamed) -> Kokoro TTS -> speakers
WHAT YOUR AGENT WILL BUILD
- Microphone capture with voice activity detection and pre-roll, so the first word isn't clipped
- Local speech-to-text with faster-whisper
- Streaming replies from a local Ollama model, split into sentences so speech starts before the reply is finished
- Local text-to-speech with Kokoro
- Barge-in: interrupt the assistant mid-sentence by talking, and your interruption becomes the next turn
- A modular Python project: config, audio_in, stt, llm, tts, playback and main
WHAT'S INCLUDED
- Working module templates for every part of the pipeline
- An environment checker script that reads your setup and reports what's missing
- Architecture notes explaining the threading design that avoids deadlocks on interruption
- Tuning guide for your mic, room and hardware (CPU or NVIDIA GPU)
- Troubleshooting guide for latency, echo, clipped words and false interruptions
GOOD FOR
- Developers building private, local-first voice apps
- Anyone making a JARVIS-style desktop assistant
- Adding voice chat to an existing Python project
- Improving latency or barge-in in an existing local voice loop
REQUIREMENTS Python 3.10-3.12, a microphone and speakers, and Ollama with a pulled chat model (for example qwen3:4b-instruct). Model files (Silero VAD, Kokoro, Whisper) are downloaded once during setup from their original sources, and your agent asks before downloading or installing anything. After setup the only connection is to your local Ollama server. Model files are not included and each has its own license.
Requires manual download of model weights. Silero VAD is strictly locked to 16kHz sample rates and 512-sample chunks. Hardware must support Python 3.10-3.12.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 5 days ago
- Free with an Agensi account
- Software
- Python 3.10-3.12OllamaMicrophone and speakers (or a headset)
Python
- Optional
- NVIDIA GPU (faster speech recognition)
Everything this skill builds runs on your own computer. Once setup is done, the only connection is to your local Ollama server (localhost:11434). No API keys, no accounts and no cloud AI services are involved. The environment check script is read-only: it installs nothing, downloads nothing and…
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.