Voice AI: ASR, TTS & Realtime
AI Engineer path · lesson 64 of 124Tune each stage of the ASR → LLM → TTS pipeline against the ~1.2-second conversational bar, trigger a barge-in, and compare cascades with native speech-to-speech models.
Key insight
No single stage kills a voice agent — the sum does. The cascade only hits conversational speed when every stage streams into the next: ASR emits partial transcripts, the LLM streams its first sentence, and TTS starts speaking while the rest is still generating.
A spoken turn, end to end
Order a cascaded voice pipeline.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
- 6Drop a step here
Test your knowledge
Order the stages of a cascaded voice agent:
The short version
A cascaded voice agent is a relay race: listener → translator → thinker → speaker, each handing a baton. The audience only notices the total time, so every runner must start moving before the previous one fully finishes — streaming is the whole sport. A speech-native model is one runner who does all four legs.
In more depth
Voice AI: ASR, TTS & Realtime
Voice adds a constraint text never had: a human waiting in silence. Two architectures compete:
Cascaded pipeline
VAD → ASR → LLM → TTS. Each stage streams into the next: partial transcripts prefill the LLM, the first generated sentence starts TTS while the rest is still writing. The text hop between stages is a feature — it's where logging, guardrails, and tool-calling live — but it flattens speech to text, discarding tone, hesitation, and overlap.
Native speech-to-speech
Realtime models consume and produce audio tokens directly: lowest latency, natural prosody, real interruptions, paralinguistics preserved — but no text checkpoint, harder moderation, and less component control.
The numbers that matter
Interview Questions
References & Further Reading
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required