Realtime voice agents
For engineers
Speech-to-speech models and chained pipelines, session and transport design, turn detection, barge-in, and tool calls during a live conversation
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A support bot must redact card numbers from what it says before any audio is produced. Which design fits best?
Check yourself · 2 of 5
A browser voice demo connects directly to the model using the team's API key stored in a front-end constant. What is the problem?
Check yourself · 3 of 5
Callers keep getting cut off while reading a phone number with pauses. What is the most targeted change?
Check yourself · 4 of 5
A caller interrupts after the agent has spoken about 3 seconds of a 9-second generated reply. What should the stored assistant turn contain?
Check yourself · 5 of 5
A voice agent can cancel a customer's subscription. What is the safest design?
Topics
- Speech-to-speech models versus chained pipelines4 min read · Native audio models against a speech-to-text, LLM and text-to-speech chain: latency, control, transcripts, model choice and cost per minute
- Transport and session architecture for voice agents5 min read · WebRTC vs WebSocket, short-lived client tokens instead of API keys in the browser, media servers such as LiveKit Agents and Pipecat, and session configuration
- Voice activity and end-of-turn detection5 min read · Voice activity detection thresholds, silence timeouts, semantic turn detection, and why callers reading out a card number or pausing to think get cut off
- Handling barge-in and interrupted replies5 min read · Cancelling generation and playback when the user talks, trimming history to what the user actually heard, echo cancellation, and ignoring backchannels
- Tool calls and state during live conversations5 min read · Filler speech while a tool runs, confirming before actions with side effects, asynchronous tools, session length limits and keeping context small over long calls
Start here
- Realtime API guide (OpenAI API) (opens in a new tab)DocsFree
Session types, WebRTC, WebSocket and SIP transports, events and ephemeral client tokens.
- Voice activity detection in the Realtime API (OpenAI) (opens in a new tab)DocsFree
Server VAD and semantic VAD settings: threshold, silence duration, eagerness and interruption behaviour.
- Live API (Gemini API docs) (opens in a new tab)DocsFree
Gemini's streaming audio API: sessions, voice activity settings, interruptions and tool use.
Helps to know first
110 questions · last verified 2026-12