Voice Agents That Work Offline: Local Speech Models for Private Apps

Voice agents that work offline run Whisper, Vosk or Piper on your own hardware, so no audio leaves the device. Here is the stack and how to build one.

By Galactic News Editorial · Published 2026-11-21T10:27:34+00:00 · Updated 2026-11-21T10:27:34+00:00

Voice agents offline local speech models for private apps

Voice Agents That Work Offline: Local Speech Models for Private Apps

Voice agents that work offline run entirely on your own hardware. Speech recognition, language understanding, and speech synthesis all happen locally. No audio leaves the device. No transcript goes to a cloud server. For private apps, that is the whole point.

This guide covers the local stack, how to choose a speech engine, and how to build a working agent. It is a research-based assessment of published guides and documentation. No setup here was tested firsthand.

Voice agents offline local speech models private apps

A local voice agent chains three models. Speech to text turns the user's sentence into text. A language model writes the answer. Text to speech reads it back. Each part has a local counterpart that runs on ordinary hardware.

The common stack is Whisper for speech to text, a small local language model served by Ollama or LM Studio, and Piper for text to speech. One published local setup uses Whisper base, Qwen3 4B Instruct served by Ollama, and Piper, with the whole stack answering about one second after the user stops talking on a MacBook Pro M2, holding around 4 GB of memory. Those figures come from that author's own measurements on one machine.

Home Assistant users wire the same parts together with the Wyoming protocol. Whisper handles speech to text, Piper handles text to speech, and Home Assistant Assist handles intents. The microphone hardware only needs to be on the same local network.

Choosing a speech-to-text engine

Three engines dominate local speech recognition in 2026. Each fits a different constraint.

Whisper is the accuracy pick. OpenAI released it as an open-source model trained on 680,000 hours of multilingual audio. On a Raspberry Pi 5, the faster-whisper runtime transcribes a 10-second clip in roughly 2 to 3 seconds. The original Python implementation takes about 6 seconds for the same clip. Whisper Tiny has 39 million parameters and takes about 75 MB on disk. Whisper Base has 74 million parameters and takes about 142 MB. Whisper Small has 244 million parameters and takes about 466 MB. Base is roughly 30 percent more accurate than Tiny on clean speech. Small is noticeably more accurate with accented speech or background noise.

Vosk is the streaming pick. It is built for embedded devices, with models from 50 MB to 1.8 GB, and it runs on as little as 500 MB of RAM. Its main advantage over Whisper is native real-time streaming: it returns partial results as the user speaks, instead of waiting for a finished chunk. That makes it the better choice for voice commands and live captions on a laptop or Raspberry Pi.

Other engines fill narrower gaps. Moonshine is designed for live streaming workloads with models down to about 1 MB. Sherpa-onnx offers streaming Zipformer models with ONNX Runtime, plus voice activity detection and text to speech in one stack. PocketSphinx is very light but its accuracy can suffer. For most projects, the choice is Vosk for streaming commands or faster-whisper for the best transcript quality.

Choosing text to speech

Piper is the standard local text-to-speech engine. It speaks 53 languages and runs well on any CPU. Each voice is a few dozen megabytes. It produces natural-sounding speech without a GPU.

Kokoro is a newer option that installs with a single npm command in Node setups and starts speaking a little sooner than Piper. Pocket TTS is another lightweight choice. Phonon runs on a worker thread without a subprocess or native addon, and sends its first audio 30 to 100 milliseconds after receiving a sentence.

Pick Piper first. It is the most documented, the most widely used with Home Assistant, and its voices are easy to swap. Switch only if startup latency becomes a measured problem.

Comparing the local speech engines

EngineStreamingModel sizeBest for
Whisper via faster-whisperNo, chunk-basedTiny 75 MB, Base 142 MB, Small 466 MBHighest transcript quality on discrete utterances
Whisper via whisper.cppNo, chunk-basedSame model weights as faster-whisperFast C and C++ inference on ARM without GPU dependencies
VoskYes, native streaming with partial results50 MB to 1.8 GB, runs on 500 MB RAMVoice commands, live captions, embedded devices
MoonshineDesigned for live streamingDown to about 1 MBTiny on-device voice commands and captions
sherpa-onnxYes, streaming ZipformerVaries by modelProduction streaming ASR with voice activity detection and TTS in one stack
Piper (TTS)Yes, sentence streamingA few dozen MB per voice, 53 languagesLocal text to speech on any CPU

Building a local voice agent in five steps

  1. Pick your hardware. A Raspberry Pi 5 with 8 GB of RAM handles Whisper plus a wake word engine and Piper. A laptop or small server handles larger models. The Pi 5's quad-core Cortex-A76 processor at 2.4 GHz gives Whisper enough room to run alongside the rest of the pipeline.
  2. Install the speech-to-text engine. For accuracy, install faster-whisper and download the Whisper Base model. For streaming commands, install Vosk with a small model in your language.
  3. Add a wake word engine. Porcupine detects the wake word, then audio capture begins. This keeps the microphone from transcribing everything in the room.
  4. Install Piper and download one voice. Test it from the command line before wiring it into the agent.
  5. Connect the language model. A small model served by Ollama, such as Qwen3 4B Instruct, answers from the transcript. Only the transcribed text reaches the language model. Raw audio stays on the device.

For a smart home, use the Wyoming protocol to connect Whisper and Piper to Home Assistant. Each service exposes a socket, Home Assistant connects to it, and they exchange audio frames and transcription events. Microphone hardware such as an ESP32 Voice PE or a ReSpeaker USB mic array speaks Wyoming natively or through a satellite service.

Privacy and latency trade-offs

Offline voice agents trade a little accuracy for full privacy. A cloud model may transcribe accented speech better. A local model keeps every word on your hardware. For a private app, that trade is usually worth it.

Latency is the second trade. Local models answer in about a second on a modern laptop. On a Raspberry Pi, Whisper Tiny transcribes a 10-second clip in 2 to 3 seconds with faster-whisper. That is fast enough for commands and short questions. It is slow for long dictation. Use a larger model or a faster machine when the delay becomes noticeable.

One common mistake is buying a Google Coral USB accelerator to speed up Whisper. It does not help. The lever for fast local speech to text is a real CPU or an NVIDIA GPU, not a Coral.

Another point: the wyoming-satellite service is no longer maintained. Its own documentation points new setups at Linux Voice Assistant, which uses the ESPHome protocol and supports newer features such as media player control and stop-word handling.

Bottom line

Start with Whisper Base through faster-whisper, Piper for speech, and a small local language model through Ollama. That stack runs on a laptop, answers in about a second, and keeps all audio on the device. Switch to Vosk when you need real-time streaming for commands. Use a Raspberry Pi 5 when the agent must live in a room, not on a desk. The privacy is not a feature to add later. It is the reason to build locally in the first place.