Where the Time Goes in a Real-Time Voice Agent, Stage by Stage

16 min read

The problem

You call a dental clinic's booking line. A voice agent answers. You say, "Can I move my cleaning to Thursday afternoon?" and then you wait. If the reply starts quickly, the call feels like talking to a person. If it starts late, you begin to wonder whether the line dropped, you say "hello?", and now the agent has to deal with an interruption it caused itself.

Nothing in that exchange is slow on its own. The trouble is that a voice agent is a chain of separate systems, each waiting for the one before it, and people are extremely sensitive to the total.

This post walks through the chain one stage at a time, shows what conversation research says about normal human pauses, and argues for one number to watch: the time from when the caller stops talking to when they hear the agent's first sound.

How fast humans take turns

Start with the target, because it is stricter than most people expect.

In 2009, Tanya Stivers and colleagues published a study in PNAS that timed turn transitions in 10 languages from five continents. They looked at a simple, comparable moment: someone asks a yes/no question and someone else answers. The gap was measured from the end of the question to the start of the answer. Their findings:

MeasureWhat the paper reports
Shape of the distributionOne peak in every language, with the most common gap between 0 and +200 ms
Most common gap across all data0 ms
Median gap per languageFrom 0 ms (English, Japanese, Tzeltal, Yélî-Dnye) to +300 ms (Danish, ‡Ākhoe Hai‖om, Lao)
Median across all data+100 ms
Mean gap+208 ms overall; fastest Japanese at +7 ms, slowest Danish at +469 ms

The paper also found that answers come faster than non-answers in every language, and that in English a response is often delayed by up to a second when it does not actually answer the question or goes against what the asker expected.

A 2015 review by Stephen Levinson and Francisco Torreira in Frontiers in Psychology adds two points that matter for voice agents. First, the typical gap of about 200 ms is shorter than the time it takes a person to plan and produce even a single word, which the review puts at 600 ms or more. So people do not wait for silence and then think. They predict where the other person's turn will end and plan the reply while still listening. Second, long gaps carry meaning. The review reports that gaps of 700 ms or more go with "dispreferred" responses (refusals, disagreement), and cites experiments where gaps of 600 ms or more led listeners to infer an unwelcome answer.

That second point is the real problem for a voice agent. A caller does not just experience a slow agent as slow. A long pause sounds like hesitation, or like a "no".

The chain, stage by stage

Here is the usual "cascade" design: separate models for listening, thinking and speaking. Other designs exist (speech-to-speech models, full-duplex models), and they are compared in part 5 of this series. The cascade is still the easiest one to reason about, because every stage is visible.

StageWhat it doesWhat it waits for
1. TransportCarries audio between the caller and your serverNetwork travel time and buffering
2. VADVoice activity detection: is this audio frame speech or not?A few tens of milliseconds of audio per decision
3. Turn detectionDecides whether the caller has finished their turnA pause, plus whatever extra wait you configure
4. STTSpeech to text: turns audio into wordsThe end of the audio, to finalize the transcript
5. LLMLanguage model: writes the replyThe final transcript, then its first token
6. TTSText to speech: turns the reply into audioEnough text to start speaking
7. Transport againCarries the agent's audio backNetwork travel time and the caller's playback buffer
sequenceDiagram
    participant M as Caller mic
    participant V as VAD
    participant T as Turn detector
    participant S as STT
    participant L as LLM
    participant X as TTS
    participant P as Caller speaker
    M->>V: audio frames
    M->>S: audio streams in while caller talks
    S-->>S: interim transcripts
    V->>T: caller went quiet
    Note over T: endpointing wait, LiveKit default min_delay 0.5 s
    T->>S: turn is over
    S->>L: final transcript
    L->>X: first tokens
    X->>P: first audio
    Note over M,P: time to first audio = end of caller speech to first agent sound

Sequence: one caller turn moving through the cascade, from microphone to the agent's first sound.

1. Transport: browser or phone

If the caller is in a browser or an app, audio usually travels over WebRTC, the standard for real-time media on the web. Its standard voice codec is Opus: the 2012 Xiph.Org announcement of Opus as RFC 6716 lists frame sizes from 2.5 ms to 60 ms, and mentions the IETF's "strong consensus" to make Opus mandatory to implement for WebRTC. A short frame means the sender only has to collect a few milliseconds of sound before it can send a packet, which is one reason browser audio can travel with little added delay.

If the caller is on a phone, the audio crosses the phone network and arrives at your system through a SIP trunk as RTP packets. That path has its own hops and its own costs, which are covered in detail in the telephony series: start with how a phone call reaches an AI voice agent and the latency budget of a voice agent on SIP.

For a sense of scale on the network part alone, the ITU-T recommendation G.114 (the 1996 edition) gives planning limits for one-way delay on voice connections: 0 to 150 ms is acceptable for most uses, 150 to 400 ms is acceptable only if the planner knows the impact, and above 400 ms is unacceptable for general planning. It also notes that some highly interactive tasks suffer even around 100 ms. That standard was written for person to person calls, where nobody needs to think before replying. A voice agent spends that budget twice (audio in, audio out) and then adds its own thinking on top.

2. VAD: is anyone talking?

Voice activity detection is a small classifier that labels each short slice of audio as speech or not speech. It is the cheapest stage. The Silero VAD project says one audio chunk of 30 ms or more takes under 1 ms to process on a single CPU thread. Pipecat's documentation repeats that figure and adds that running VAD locally is "150-200ms faster than remote VAD services", which is an argument for keeping this stage on your own server instead of sending audio elsewhere just to find out whether someone is talking.

VAD itself is fast. What costs time is what you do with its output, which is the next stage.

3. Turn detection: are they done?

Silence is not the same as "finished". People pause mid-sentence to remember a date or read a number off a card. So every voice agent waits a little after the caller goes quiet before deciding the turn is over. That wait is called endpointing, and it is often the single largest delay you control.

The defaults are easy to look up. In LiveKit Agents, the turn-tuning docs list endpointing.min_delay at 0.5 s and endpointing.max_delay at 3.0 s. When the turn decision comes from VAD alone, the docs say the wait is the larger of the VAD's own silence setting and min_delay. LiveKit's Silero plugin sets min_silence_duration to 0.55 s by default. Putting those two published defaults together: max(0.55 s, 0.5 s) = 0.55 s of silence before the agent even decides the caller is done.

Compare that with the research above. 0.55 s is already close to the 600 ms point where, per the Levinson and Torreira review, listeners start reading meaning into a pause, and that is before any transcript has been finalized, any token generated, or any audio synthesized.

This is why turn detection models exist. Instead of waiting for a fixed silence, they look at what was said and how it was said, and decide earlier when the turn is clearly complete. LiveKit's docs say that when its turn detector is in use, min_delay defaults to 0.3 s and max_delay to 2.5 s. Pipecat's Smart Turn model reports CPU inference under 100 ms on low-cost cloud instances. How these models work, and the tradeoff between cutting people off and leaving them hanging, is the whole subject of part 3.

4. STT: words from audio

A streaming speech-to-text service sends partial ("interim") transcripts while the caller is still talking, then a final transcript once it is confident the words will not change. The interim results are useful for showing progress and for early guesses, but the reply is normally built from the final one.

Streaming matters a lot here. If the STT service gets audio continuously while the caller speaks, most of the recognition work is already done when they stop. The remaining cost is finalizing the last few hundred milliseconds of speech. Some STT services also offer their own endpointing. Deepgram's endpointing docs, for example, say endpointing is on by default and fires after 10 ms of detected silence, configurable with a parameter such as endpointing=500 for 500 ms. That shows how different defaults can be from one tool to the next, so check every layer that might be waiting.

5. LLM: the first token, not the whole reply

The language model does not need to finish its reply before anything useful happens. What matters is the time to its first token, and then whether tokens keep arriving faster than the TTS can speak them.

Two things inflate this stage in practice: long prompts (every turn resends the conversation so far) and tool calls. If the model has to look up the clinic's calendar before answering "Thursday afternoon?", the first spoken word waits for that tool call. Part 7 covers how to keep tool time from turning into dead air, including short filler phrases.

6. TTS: the first audio, not the whole sentence

Streaming text-to-speech starts producing audio from the first few words, so the caller hears "Sure, Thursday at..." while the model is still writing the rest of the sentence. The number to look at is time to first audio byte. Vendor figures for this vary a lot and usually measure only the model's own processing, without network time, so treat any published TTS latency as a lower bound for what your caller hears.

7. Back to the caller

The agent's audio travels back through the same transport and the caller's jitter buffer (a small buffer that smooths uneven packet arrival). You pay transport twice per turn.

Streaming is what makes the chain fit

If every stage waited for the previous one to finish completely, the delays would simply add up. Streaming lets them overlap:

  • Audio flows into STT while the caller is still talking, so recognition is mostly done when they stop.
  • The LLM can start on a transcript before the turn is officially confirmed.
  • TTS starts on the first sentence fragment instead of the full reply.
  • Audio playback starts on the first chunk of synthesized speech.

Animation: the same turn with every stage waiting for the last, then with streaming, where TTS speaks sentence by sentence and first audio arrives earlier (not to scale).

LiveKit Agents calls the second item preemptive generation. Its tuning docs say it is on by default and starts the LLM as soon as a final transcript arrives, before the end of turn is confirmed. If the caller keeps talking, the early reply is thrown away. There is also a preemptive_tts option, off by default, that starts speech synthesis early too. The TurnHandlingOptions docstring in the LiveKit Agents source shows the plain-dict form of these settings. Here it is as an example, not something run for this post:

python
# LiveKit Agents 1.x, turn_handling as a plain dict
# (form shown in the TurnHandlingOptions docstring in livekit/agents voice/turn.py)
session = AgentSession(
    # vad=..., stt=..., llm=..., tts=...
    turn_handling={
        "endpointing": {"min_delay": 0.3},
        "preemptive_generation": {"preemptive_tts": True},
    },
)

LiveKit's own docs are candid that this is not free: they note that preemptive generation "doesn't always reduce latency", and every thrown-away draft is an LLM call you still pay for. That is a fair warning. If the caller often pauses mid-sentence, preemptive drafts get discarded often.

A budget you can actually fill in

Below is the budget I would sketch before building anything. It deliberately has no made-up numbers. The middle column holds only figures a vendor or standard has published, and the right column is what you fill in from your own measurements.

StagePublished reference point (who says so)Your measured value
Transport, one way0 to 150 ms acceptable for most uses (ITU-T G.114)measure
VAD per chunkUnder 1 ms per 30+ ms chunk on one CPU thread (Silero VAD repo)rarely matters
Endpointing wait0.5 s min_delay default, 0.3 s with turn detector (LiveKit docs)your config
Turn model inferenceUnder 100 ms CPU on low-cost cloud instances (Pipecat Smart Turn docs)measure
STT finalizationDepends on vendor and settingsmeasure
LLM first tokenDepends on model, prompt length, toolsmeasure
TTS first audioVendor figures usually exclude networkmeasure
Transport backSame as the way inmeasure

The point of writing it out is to see which rows you can shrink. Usually it is the endpointing wait (by using a turn model instead of plain silence), the LLM's first token (shorter prompts, fewer tools, a faster model) and the number of network hops (keeping STT, LLM and TTS close to each other and to the caller).

Animation: the budget as bars, drawn to scale only where a vendor or standard publishes a number. The endpointing wait drops from 0.55 s (LiveKit, VAD only) to a 0.3 s minimum with LiveKit's turn detector.

The number that matters: time to first audio

Every stage has its own metric, and each one is useful for debugging. But the caller does not experience stages. They experience the gap between the end of their own words and the start of the agent's voice.

LiveKit exposes a per-turn value that matches this closely. Its observability docs describe e2e_latency on assistant messages as the time from when the user stopped speaking to when the agent began responding. Alongside it are the parts: end_of_turn_delay and transcription_delay on the user's message, and llm_node_ttft (LLM time to first token) and tts_node_ttfb (TTS time to first byte, after the first text token) on the agent's message. Those let you see which stage ate a slow turn.

Two caveats I would keep in mind:

  1. Server-side numbers start the clock when the server thinks the user stopped talking, which is after the audio has already traveled to it. The caller's version of the gap also includes transport both ways and their playback buffer. If you can, also measure from the caller's side, for example from a recording of a test call.
  2. Averages hide bad turns. A booking line that answers most turns quickly but stalls on every calendar lookup will still feel broken. Look at the slow tail (p95), not just the median. Part 8 covers how to do this per stage and per turn.

What feels laggy, in practice

Putting the research and the pipeline together, here is my reading of where the line is. This is an opinion, not a measured threshold.

  • Human gaps cluster around 0 to 300 ms (Stivers et al.). An agent will rarely match that consistently, because it cannot start planning a reply before it has heard the words the way people do.
  • Around 600 to 700 ms, the research says listeners start to hear a pause as meaningful, as hesitation or a coming "no". For a booking line, that is the zone to stay out of on ordinary turns.
  • Around one second is the classic line from conversation research. Gail Jefferson (1989), as summarised by Roberts, Francis and Morgan (2006), proposed about one second as a "standard maximum" silence, after which people fill or end the gap. A 2025 SemDial study by Mathias Barthel timed a home voice assistant in real households and measured an average response gap of about 1,366 ms, which the paper calls atypically slow compared with human conversation. So "over a second feels laggy" has a real basis.
  • Past that, callers start talking again, which triggers barge-in handling (covered in part 4) and makes everything after it messier.

The practical goal is not zero. It is to keep ordinary turns out of the "this pause means something" range, and to cover the unavoidable slow turns (tool calls, long answers) with something audible, like a short "Let me check Thursday", so the silence never stands on its own.

Where to go next

For the gentler big picture, see how voice AI works; for what silence costs on a bill, how OpenAI made voice agent silence 60 percent cheaper. Next in this series: the biggest delay you control, how voice agents know you have finished talking.

New to a term used here? The series glossary defines VAD, endpointing, barge-in, full-duplex, MCP, p95 and the rest in plain language.

Sources