Skip to content

AI, decoded

How do AI voice agents work?

Most voice agents use one of two designs. A chained pipeline turns speech into text, sends the text to a language model and turns the reply back into speech. A speech-to-speech model takes audio in and returns audio out from one model over a streaming connection. The second cuts handoffs and delay; the first is easier to inspect and control step by step. Yutori's Dhruv Batra told Chain of Thought that spoken conversation with a person carries a hundred-millisecond latency constraint, and anything slower causes unnatural pauses.

· Chain of Thought

Level 4: How AI systems are built

Multimodal AIAI Agents

  • 5 episodes
  • 5 guest clips
  • 3 common questions
  • 6 glossary terms

In detail

The chained pipeline

The older design joins separate components. The Moshi paper lists the usual chain: voice activity detection to notice when someone is speaking, speech recognition to turn it into text, a text dialogue model to decide the reply, and text-to-speech to say it. Its authors note that this chain can add several seconds of delay between turns and loses information that is not in the words, such as tone.

Each handoff also adds a chance to be wrong. Smartling’s Olga Beregovaya describes the speech-translation version of this chain: recognize the speech, translate it, render the translation, then generate speech. Every step you introduce adds another potential error. She says a multilingual, multimodal model can now fit that whole chain into one model.

The pipeline has strengths. After speech recognition and before speech synthesis, text checkpoints let you log, test and filter the transcript and the model’s reply before anything is spoken, and you can swap one component without touching the others. Superhuman’s Loïc Houssier says that turning speech into text is the easy part of his team’s voice feature; it can even run on the device. The hard part is turning a rambling dictation into a well-written email, which is the language model’s job.

Speech-to-speech models

The newer design uses one multimodal model that hears and speaks. Liquid AI’s Maxime Labonne describes his company’s audio foundation model as handling any combination: speech to text, text to speech, speech to speech or text to text.

Hosted APIs package this for developers. OpenAI’s Realtime API guide says its model works directly with audio, keeps the conversation state and can call tools, and recommends it for voice agents that need barge-in, low delay before the first audio, natural turn-taking and tool use during the conversation. The session runs over WebRTC in a browser or a WebSocket from a server. Google’s Gemini Live API describes low-latency voice and vision sessions over a stateful WebSocket, with barge-in and function calling. (Both checked October 24, 2026.)

Some research models go further and listen while they talk. Moshi models its own speech and the user’s speech as parallel streams, so it can handle overlaps and interruptions without waiting for a clean end of turn.

Latency sets the design

Dhruv Batra treats live conversation as its own niche that needs its own kind of model. In math or coding, a model can take time to think. In a spoken exchange, he says, the budget is about a hundred milliseconds, and he expects voice agents to be built on specialized full-duplex audio models. Measure the delay from the end of the caller’s speech to the first audio back, not just the model’s response time. The general method is in how to reduce AI response latency.

Testing is harder than for text

Twilio’s Vinnie Giarrusso describes what changes for evaluation. A text request is one input and one output. A voice session means setting up a WebSocket connection and handling audio as it streams. You then have to check whether the stream came back correctly, whether an interruption was caught partway through, and what happened after it. He suggests starting with task-based evaluations, judging whether the call achieved its goal, before grading every turn of the stream.

How to choose

Illustrative example: a clinic wants an agent that books appointments by phone. A chained pipeline makes sense if every request must pass a written policy check before the agent answers, if the team needs a reviewed transcript of each turn, or if the clinic wants a specific synthetic voice. A speech-to-speech model makes sense if callers interrupt a lot and the main complaint is that the agent feels slow. Either way, the booking itself should be a tool call the agent makes, so the calendar stays the source of truth.

Where it falls short

Audio evaluation tooling is less mature than text evaluation, and a fluent voice can make a wrong answer sound confident. Speech-to-speech models give you fewer places to step in between hearing and speaking, so plan where your checks run before choosing one. For the broader set of models that see, hear and read, see what multimodal AI is.

Disclosure: Episode 59 is sponsored by Galileo, the Season 3 presenting sponsor; the thanks is at 1:22. Episodes 6 and 20 were sponsored by Galileo, where Conor then worked; in episode 6 he introduces himself as Galileo’s head of developer awareness at 0:00.

Two ways to build a voice agent: a chained pipeline or one speech-to-speech model Top lane, the chained pipeline: caller audio goes to voice activity detection, then speech recognition, then a text language model, then text-to-speech, and back to the caller. Text checkpoints are marked after speech recognition and before text-to-speech; audio handoffs are not text checkpoints. Each stage can add delay and error. Bottom lane, speech-to-speech: caller audio streams over WebRTC or a WebSocket into one model that hears and speaks, with barge-in so the caller can interrupt, and returns audio. Both lanes can call tools such as a booking calendar. A banner gives the budget Dhruv Batra cites in episode 63: about a hundred milliseconds before a pause feels unnatural. Chain the steps, or use one model Both designs can call tools. They differ in where you can check the work and how long the caller waits. CHAINED PIPELINE caller audio voice activitydetection speechrecognition text languagemodel text-to-speech reply ● Text checkpoints: after recognition and before synthesis Each stage can add delay and a chance of error. SPEECH-TO-SPEECH caller audio one model hears and speaks streams over WebRTC or a WebSocket · barge-in lets the caller interrupt reply Fewer handoffs and less delay; fewer places to step in before it speaks tools, e.g. a booking calendar THE BUDGET · DHRUV BATRA, EPISODE 63 About 100 ms in live conversation before a pause feels unnatural Pipeline stages from the Moshi paper (Kyutai, 2024); speech-to-speech features from OpenAI and Google docs, checked Oct. 24, 2026.
Chain the steps for control, or use one model for speed. The 100 ms budget is Dhruv Batra’s, from episode 63; the pipeline stages follow the Moshi paper. Download the image

Hear it from the guest

“You have a hundred millisecond latency constraint.”
Watch on YouTube
“It can do speech to text, but also text to speech or speech to speech or text to text.”
“And every time, every step you introduce, you introduce potential fine error.”
“You can even do it on device now with like some really good results.”
Watch on YouTube
“Setting up a WebSocket connection and streaming and just waiting for streams to come back.”

Quotes lightly edited to remove filler words.

Go deeper

Common questions

What is barge-in in a voice agent?
Barge-in means the caller can interrupt while the agent is talking, and the agent stops and listens. OpenAI's Realtime API and Google's Gemini Live API both list it as a supported behavior. In a chained pipeline you have to build it yourself by detecting new speech and cancelling playback.
Can a voice agent use tools?
Yes. The same tool calling used by text agents works in voice sessions. OpenAI's Realtime documentation describes attaching tools, handoffs and guardrails to a realtime agent, and the Gemini Live API supports function calling and Google Search.
Is speech recognition still needed with a speech-to-speech model?
Not as a separate step to get an answer, because the model works on audio directly. Many teams still produce a transcript alongside the audio for logs, evaluation and compliance.

From the conversation

This explainer is drawn from these episodes — each carries its full transcript.

Concepts in this explainer

Text-to-SpeechMultimodal AITool Use (Function Calling)Speech recognitionLatencyFoundation Model