We present a technical tutorial for building enterprise-grade realtime voice agents from first principles. While end-to-end speech-to-speech models may ultimately provide the best latency for voice agents, fully self-hosted end-to-end solutions are not yet available. We evaluate the closest candidate, Qwen3-Omni, across three configurations: its cloud-only DashScope Realtime API achieves ∼702ms audio-to-audio latency with streaming, but is not self-hostable; its local vLLM deployment supports only the Thinker (text generation from audio, 516ms), not the Talker (audio synthesis); and its local Transformers deployment runs the full pipeline but at ∼146s -- far too slow for realtime. The cascaded streaming pipeline (STT → LLM → TTS) therefore remains the practical architecture for self-hosted realtime voice agents, and the focus of this tutorial. We build a complete voice agent using Deepgram (streaming STT), vLLM-served LLMs with function calling (streaming text generation), and ElevenLabs (streaming TTS), achieving a measured time-to-first-audio of 755ms (best case 729ms) with full function calling support. We release the full codebase as a 9-chapter progressive tutorial with working, tested code for every component.
Figures & tables
Model
Level
Size
FC
FD
Streaming
License
Moshi [ 4 ]
1
7B
✗
✓
✓
CC-BY
Qwen3-Omni [ 18 ]
2
30B
✓
✗
✓ †
Apache 2.0
Qwen2.5-Omni [ 26 ]
2
7B
✗
✗
Partial
Apache 2.0
GLM-4-Voice [ 27 ]
2
9B
✗
✗
✓
Apache 2.0
Kimi-Audio [ 14 ]
2
7B
✗
✗
✓
–
Step-Audio [ 23 ]
2
130B
✗
✗
✓
Apache 2.0
Table 1: Representative speech-to-speech models with open weights. “FC” = function calling support. “FD” = full-duplex. “Streaming” = supports incremental audio output. † Streaming audio via DashScope Realtime API; local vLLM supports text streaming only (Thinker).
Mode
Inference Time
Audio Duration
RTF
Text only
0.71s
–
–
Text + Audio
26.5s
13.8s
1.93 ×
Text + Audio (per sentence)
13.2s
6.8s
1.94 ×
Table 2: Qwen2.5-Omni-7B inference latency on a single NVIDIA H200 GPU.
Configuration
TTFT
TTFA
tok/s
FC
Audio Out
vLLM Thinker (1 × H200)
48ms
516ms ∗
168
✓
✗
Transformers full (1 × H200)
–
145,694ms
4.6
✓
✓ (2.91 × RTF)
DashScope Realtime API
449ms
702ms
–
Partial
✓ (streaming)
Table 3: Qwen3-Omni inference latency across deployment configurations. TTFT = time-to-first-text, TTFA = time-to-first-audio, FC = function calling.
Component
P50
Mean
Min
Max
With cloud OpenAI API (GPT-4.1-mini)
Deepgram STT
402
407
184
601
LLM TTFT
457
622
278
784
ElevenLabs TTS TTFB
221
226
216
253
Est. E2E TTFA
958
1054
715
1606
With self-hosted vLLM (Qwen2.5-7B-Instruct on H200)
Spoken dialogue is a natural form of human--computer interaction, yet most speech language models remain limited to turn-based operation and lack real-time adaptability, such as user barge-in. Recent duplex speech-to-speech and speech-to-text models reduce latency by replacing multi-stage pipelines, but often compromise speech quality because accurate ASR, interruption handling, and high-fidelity synthesis must be optimized jointly. We propose VoiceChat-TTS, a low-latency, continuous, and streamable text-to-speech model for interactive agents. VoiceChat-TTS is driven directly by LLM text-token streams, supports explicit interruption via control tokens, and produces silence when no textual input is available. The model enables always-on, responsive speech generation while preserving modularity and high speech quality, and it supports mid-utterance interruptions without resetting the KV cache.
Edresson Casanova, Jaehyeon Kim, Mariana Graterol Fuenmayor +17
Realtime spoken interaction demands deep reasoning, prompt responses, and fluid turn-taking. We present StepAudio 3 Realtime, an audio-language foundation model organized around a continuous listen-converse-think-act loop. Deep Perception captures rich acoustic cues to interpret user intent, while Seamless Duplex models synchronized audio streams to handle pauses, backchannels, and interruptions naturally. Crucially, we resolve the tension between deep deliberation and latency via Think-While-Speaking, executing private reasoning in parallel with spoken delivery. In reasoning mode, StepAudio 3 reaches a 73.0 macro average on StepAudioChat. With Think-While-Speaking, it achieves dialogue and reasoning performance comparable to dedicated reasoning models while speaking in real time. Furthermore, an integrated Voice Agent handles asynchronous tool execution without disrupting the dialogue flow. StepAudio 3 Realtime achieves top-tier performance across key dimensions: an exceptional 90.6 on the MMSU benchmark, 98.9 Overall on the Artificial Analysis Full-Duplex Bench, and a 56.0% macro task-success rate on τ-Voice.
Voice agents increasingly require reliable tool use from speech, whereas prominent tool-calling benchmarks remain text-based. We study whether verified text benchmarks can be converted into controlled audio-based tool calling evaluations without re-annotating the tool schema and gold labels. Our dataset-agnostic framework uses text-to-speech, speaker variation, and environmental noise to create paired text-audio instances while preserving the original dataset annotations. Based on extensive evaluation of 7 omni-modal models on audio-converted versions of Confetti and When2Call, our framework demonstrates that the performance is strongly model- and task-dependent: Gemini-3.1-Flash-Live obtains the highest Confetti score (70.4), whereas GPT-Realtime-1.5 performs best on When2Call (71.9). On Confetti, the text-to-voice gap ranges from 1.8 points for Qwen3-Omni to 4.8 points for GPT-Realtime-1.5. A targeted analysis of failure cases demonstrates that degradations most often reflect misunderstandings of argument values in the speech. Considering real-world deployment scenarios, we further report text-only results, an ambiguity-based reformulation stress test, and a reference-free LLM-as-judge protocol validated against human preferences. Notably, we find that open-source Qwen3 judges with at least 8B parameters exceed 80% agreement with proprietary judges, supporting privacy-preserving evaluation. Overall, our framework provides a verifiable and reproducible first-stage diagnostic that complements purpose-built audio corpora.