Voice architecture: latency budgets, streaming, turn-taking, and telephony
Notebook· 13.05· 2 h· Lesson 114 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Build a latency budget for one voice turn and compare it with what you measured in 13.04.
- Explain partial vs final transcripts and why an agent acts only on the final one.
- Tune endpointing (when has the caller finished?) with an energy VAD and see the trade-off of
silence_ms. - Simulate barge-in: the caller talks over the agent, playback stops and the agent knows what was heard.
- Compare a cascaded pipeline (STT → LLM → TTS) with speech-to-speech models, and measure one (optional).
- Survey what production adds: telephony (SIP/PSTN), WebRTC, and frameworks such as LiveKit Agents and Pipecat.
Before you start
Lesson 13.04 (the batch voice sandwich). Read the module README first.
