short · 3 min
Voice agents
An assistant you talk to out loud: speech-to-text, an LLM and text-to-speech chained together, or one model that hears and speaks.
updated 29 Sept 2026
A caller says "Can you move my dentist appointment to Friday?" and stops talking. Let's start a stopwatch there and see how long until they hear the first word back.
People answering each other usually take about half a second.
One turn, timed
Most voice agents chain three models: speech-to-text, an LLM, and text-to-speech. Here's one typical setup, timed by the team behind Pipecat, an open-source voice agent framework.
The phone or browser records the audio, encodes it and sends it off: about 114 ms, mostly the microphone and a small buffer that smooths out the network. Speech-to-text writes out what was said and decides the caller has finished: about 300 ms. The transcript goes into the prompt and the LLM starts answering. Its time to first token is the biggest single cost, about 650 ms. The first sentence of the reply is collected (20 ms) and handed to text-to-speech, which gets its first audio out in about 120 ms. That audio travels back and plays: about 89 ms.
About 1.3 seconds. Not half a second, but under the 1.5 seconds Pipecat suggests aiming for. That only works because every stage is streamed: text flows into text-to-speech while the LLM is still writing, and the clock stops at the first audio. (The same team got it down to about 500 ms with all three models in one GPU cluster.)
The 300 ms that hides a hard problem
Look at that second stage: "decides the caller has finished". How?
The simple way is to spot speech versus silence and end the turn after a pause, say 0.8 seconds. Make the pause long and the conversation feels stiff. Make it short and the agent jumps in every time someone stops to think. Newer turn detectors are small models that also listen to the words and the intonation, not just the silence, and the main speech-to-text providers are building this in.
Then the reverse: the caller talks over the agent. Every stage has to be cancellable, and playback has to stop at once. And the history should hold only what the caller actually heard, cut at the right word using the speech service's word timestamps.
Or one model that hears and speaks
Why not skip the chain? A speech-to-speech model takes audio in and gives audio out directly. OpenAI's Realtime API works this way, and its session handles turns, interruptions and tools for you.
Most listeners rate its voice as more natural than separate text-to-speech, and it picks up on how something was said, not just the words. But it follows instructions and calls tools less reliably than a text model. It's slower in practice, since audio takes more tokens than text. Pipecat puts it at 3 to 5 times the cost of an agent built on GPT-4.1. And you lose control: with a chain you can store the transcript, check the text before anything is said, and swap any one model out.
OpenAI's docs also describe a third shape (as of 2026-09): a voice model that listens and speaks at the same time and hands the work to your existing text agent in the background.
Keep in mind who's saying what. The strongest case for the chain comes from people who build a framework for chains. OpenAI, which sells the single model, lists it as one option of three.
Whichever you pick, the stopwatch from the start is the thing to keep. Measure from the caller's side, because providers usually quote only their own inference time. Time a filler like "let me check" separately from the real answer. Look at the median and the 95th percentile (tail latency), not the average. And check that the appointment actually moved to Friday. How fast real products will drop the chain for a single voice model is, as Pipecat puts it, still an open question.
Further reading
- Voice AI & Voice Agents: An Illustrated Primer, Kwindla Hultman Kramer and contributors (Pipecat), 2025. The latency table, turn detection and interruptions. Long, but worth it.
- Voice agents (OpenAI API docs), OpenAI. The three shapes OpenAI offers, when to chain, and how to test and time a voice agent.