speech.cpp Brings a Full Local Voice Pipeline to C++ Without Python
A single C++ binary runs Qwen3-TTS, Qwen3-ASR, Irodori-TTS, Parakeet and Silero VAD on Metal, Vulkan or CPU behind an OpenAI-compatible API.
Takeaways
- speech.cpp v0.11.4 adds three DeNA Japanese dialogue ASR models to the C++ ggml stack
- Single binary runs TTS, ASR and VAD on Metal, Vulkan or CPU with no Python or CUDA
- Qwen3-TTS 0.6B streams first audio in 0.04 s on Apple M5 at Q8_0
- Dialogue tuning cuts backchannel CER from 54.8% to 17.3% and kills noise hallucinations
- Serves OpenAI's audio API locally, so existing clients work by swapping the base URL
- New WebAssembly build, 28-language Nemotron support, and faster live-transcription finalization
speech.cpp v0.11.4 adds three DeNA-tuned Japanese dialogue recognizers, a WebAssembly build, and faster transcript finalization after a speaker stops. The project packages speech recognition, text-to-speech, and voice activity detection in one C++ runtime, giving developers a local alternative to Python, PyTorch, and CUDA-based serving stacks.
The project follows the deployment pattern popularized by llama.cpp: models use the GGUF format, while ggml provides Metal, Vulkan, and CPU backends. Applications can use the command-line interface, link against libspeech, run a persistent worker, or call an OpenAI-compatible local server.
A compact runtime for the full voice loop
The CLI downloads a selected model and its audio codec as a single GGUF file. Metal accelerates inference on Apple hardware, Vulkan supports compatible GPUs, and the CPU backend works without a discrete accelerator or CUDA installation.
After installing the binary, synthesis, recognition, and the local web interface each require one command:
speech tts qwen3-tts-0.6b --voice ryan -o hello.wav "Hello."
speech asr qwen3-asr-0.6b hello.wav
speech serve --open
The server implements OpenAI-compatible audio APIs at 127.0.0.1:8080. Clients that support a configurable base URL can redirect compatible audio requests to the local process without changing their request format.
Models cover synthesis, recognition, and segmentation
The catalog combines the components needed to turn speech into text, generate spoken replies, and divide continuous audio into utterances:
- Qwen3-TTS 0.6B: provides nine named speakers and streams audio in 80 millisecond frames.
- Qwen3-TTS 1.7B: accepts instructions that control speaking style.
- Irodori-TTS: generates Japanese speech from a reference recording or a written voice description.
- Qwen3-ASR: detects the input language, accepts prompts containing names or specialist terms, supports 30 languages, and processes recordings up to 20 minutes long.
- ReazonSpeech and Parakeet: provide additional recognition options for Japanese and 25 European languages, respectively.
- Silero VAD: uses a 1.2 MB voice activity detection model to find speech boundaries before recognition.
Benchmarks put the latency claims in context
The published benchmarks use an Apple M5 through Metal and an Nvidia RTX 2080 through Vulkan, with one request processed at a time. Median latency appears as p50. Character error rate, or CER, measures transcription mistakes and favors lower values. RTFx compares generated audio duration with processing time and favors higher values.
Qwen3-TTS 0.6B with Q8_0 quantization reaches median time-to-first-audio of 0.04 seconds on the M5 and 0.03 seconds on the RTX 2080. Its reported RTFx is 3.2 and 3.7, with CER of 5.8% and 8.0%, respectively. The larger 1.7B variant runs more slowly and reduces CER to about 3%.
| Model | CER | p50 latency, M5 | p50 latency, RTX 2080 |
|---|---|---|---|
parakeet-tdt_ctc-0.6b-ja, Q8_0 |
7.9% (3.0%) | 0.05 s | 0.04 s |
reazonspeech-v2, Q8_0 |
12.1% (7.2%) | 0.08 s | 0.11 s |
qwen3-asr-0.6b, Q8_0 |
11.9% (7.0%) | 0.13 s | 0.09 s |
qwen3-asr-1.7b, Q8_0 |
9.5% (4.7%) | 0.31 s | 0.16 s |
Each port is checked against tensors captured from its official implementation at every stage. The recognizers also reproduce the official output for all reference inputs in both F32 and F16 precision. These checks establish implementation parity on the test inputs, while the task benchmarks measure accuracy across a larger dataset.
DeNA targets dialogue-specific ASR failures
Version 0.11.4 adds nemotron-3.5-asr-streaming-0.6b-ja-dialogue, parakeet-tdt_ctc-0.6b-ja-dialogue, and haas-ja-v1.0-dialogue. DeNA tuned these Japanese models for conversational audio, where short acknowledgments such as “uh-huh” and “mm” can disappear from transcripts and background noise can produce invented words.
| Model | Test | Base model | Dialogue model |
|---|---|---|---|
| Nemotron 3.5 ASR Streaming | Backchannel CER | 54.8% | 17.3% |
| Parakeet Japanese | Noise clips producing transcripts, out of 40 | 38 | 0 |
| Haas Japanese | Noise clips producing transcripts, out of 40 | 6 | 0 |
The same release adds Nvidia’s original 28-language Nemotron 3.5 ASR Streaming model and a WebAssembly target for in-browser inference. Live transcription also commits provisional text sooner after an utterance ends, reducing the delay between detected silence and final output.
Five integration paths
| Interface | Best suited to |
|---|---|
speech tts and speech asr |
Scripts, shell pipelines, and one-off jobs |
speech serve |
OpenAI-compatible clients and the bundled web interface |
speech worker |
Long-running processes that keep models loaded and exchange JSON Lines over standard input and output |
libspeech |
Native applications that need direct C API access |
| WebAssembly | Browser applications that run inference on the client |
Deployment boundaries to check
- Network security: the server binds to
127.0.0.1and has no authentication by default. External exposure requires an authenticated proxy or another access-control layer. - Linux compatibility: prebuilt Linux deployments require glibc 2.34 or newer.
- Model licensing: licenses differ across the catalog. Irodori-TTS includes restrictions covering voice cloning without consent and deepfake use.
- Benchmark scope: the published figures cover an Apple M5, an RTX 2080, and single-request execution. Production concurrency and other hardware require separate measurement.
The DeNA variants directly address backchannels and noise hallucinations in Japanese dialogue systems. Qwen3-ASR 1.7B provides broader multilingual coverage, while the smaller models reduce latency and memory demands. The shared runtime lets teams compare those options without maintaining a separate Python serving stack for each model family.