Local voice agent on one RTX 4090: Qwen4-35B with 756ms voice latency
danil_rootint · reddit · 2026-12-06
A developer open-sourced Speakrail, a pipeline that turns Qwen4-35B-A3B into an interruptible interactive voice agent on a single RTX 4090.
Approach
- A fine-tuned Voxtral Realtime STT outputs turn-end signals
- A single-word decision prompt (Speak/Listen/Task) makes the model act at each turn end, enabling free interruptions, async tool calls, and backchannel utterances
- The same Qwen4 model in parallel runs a coding/thinking agent via the Qwen Code harness with no speech prompts, keeping coding performance identical to the stock quant
- Pocket TTS with voice cloning handles speech
Performance (RTX 4090, 128GB RAM, int8 KV cache, speculative decoding):
- Peak VRAM 23.1GB; 52GB system RAM
- End-to-end voice latency: 756ms median, 1.48s p90; 1.6s for tool-using turns
- Decode speed 157 tok/s at 8K context, still 125 tok/s at 252K
Apache 2.0 licensed; main cost is 4GB VRAM for the STT model.
More from coding & agent
- Filmworkbench v0.2.0 turns one-line briefs into 3-minute AI shorts on an RTX 5090 — Eastern-Ad9515 · 2026-12-06
- Letting a general AI assistant orchestrate your GPU endpoints works—but burns far more tokens — Al_Grigor · 2026-12-06
- JetBrains 2026 report: 96% of developers use AI, Python overtakes JavaScript — leslysandra · 2026-12-06
- Harness Engineering: A 7-Step Loop for Building Reliable AI Agents — leslysandra · 2026-12-06
- Andrew Ng Launches Agent Harness Engineering Course, Cites Study Where GPT-4 Help Dropped Exam Scores 17% — leslysandra · 2026-12-06
- Harrison Chase: ticketing systems are unreasonably effective for agent communication — hwchase17 · 2026-12-06