Twilio's sample voice pipeline takes over twice the 500ms target
Speed is only half the problem, because callers still get annoyed when an agent talks over them or transfers them and makes them start from scratch.

In brief
- Twilio's sample cascaded pipeline takes about 1.1 seconds mouth-to-ear. Future AGI sets a target for sales and support agents of under 350ms on average and 500ms at P95.
- With barge-in, a false stop is worse than a slightly late one. Choose the turn detection mode before tuning any other parameter.
- A cold transfer closes the caller's session. A warm transfer lets the agent brief a supervisor on the context before connecting the call.
Twilio’s own sample voice pipeline takes about 1.1 seconds from the moment a caller stops talking to the moment they hear a reply. That is more than twice the 500ms target a contact center should aim for, and it is the kind of gap that a quiet demo hides.
In the meeting room, everything works. A week later the agent goes live on the real phone line. Callers finish speaking and meet a long silence, then ask, “Hello, is anyone there?”
They cough once and the agent falls silent. They ask for a human, the call is transferred, and they have to explain everything again from the start.
None of these failures is about the quality of the answers. They are failures of timing and turn-taking, which is precisely the work a forward deployed engineer has to do on site.
Twilio says plainly that latency is the constraint that shapes the whole design of a voice agent. The three failures above map to three skills worth practicing: budgeting latency, handling interruptions and handing calls to humans.
Half a second has to be split across every stage
The number to remember is mouth-to-ear: the time from when the caller stops speaking to when they hear the agent’s first sound. A guide from Future AGI sets a working target for sales and support agents of under 350ms on average and 500ms at P95.
The P95 matters more than the average. An average of 300ms sounds fine, but if one turn in 20 takes 1.2 seconds, that is the turn the customer remembers. Reports to the client should therefore show both the average and the percentiles from day one.
Adding up one turn: where does 1.1 seconds come from?
Twilio built a sample cascaded pipeline of STT, LLM and TTS that comes to about 1.1 seconds (1,115ms) mouth-to-ear. It splits the budget into STT at 350ms, LLM at 375ms (to the first token, TTFT) and TTS at 100ms (to the first byte, TTFB), and states clearly that this is only a starting point.
The three stages add up to 825ms. The remaining 290ms or so goes to places few people look: the network, audio re-encoding and buffers. The first lesson is to measure more than the model. A quarter of the latency can sit in the plumbing around it.
Now set that against the 500ms P95 budget Future AGI proposes. It comes from a vendor, so treat the numbers as reference points only:
| Stage | 500ms budget (P95) | Notes |
|---|---|---|
| Network | 30–50ms | Put servers close to callers |
| STT, first partial | 100–150ms | Take interim results; don’t wait for the full sentence |
| LLM TTFT | 200–300ms | Use prefix caching |
| TTS, first audio | 80–150ms | Use a provider with streaming |
| Orchestration and guardrails | 50–100ms | Includes inline checks |
Do the arithmetic. The lower bound of every stage adds up to 460ms, just under 500ms. The upper bound of every stage adds up to 750ms, far over the target.
So every stage cannot hit its upper bound at once. At their lower bounds, the four stages other than the LLM already take 260ms, leaving the LLM 240ms at most. If the client’s LLM must run at 300ms for security reasons, the total is already 560ms even with every other stage at the best figure in the table.
At that point one stage has to go below the figure in the table, for instance by moving inline guardrails to run in parallel, or the target has to be renegotiated with the client. A budget is a trade-off problem, not a checklist. Note too that summing each stage’s P95 gives only a conservative estimate, because slow turns rarely hit every stage at once.
The first task at a client is therefore simple: record a timestamp at every stage boundary. Record the first partial and the final transcript separately, because they measure different things, and you need to know which one the client’s pipeline passes to the LLM. This pseudocode is enough to start:
# each conversation turn records its timestamps (ms)
turn = {
"user_end": t0, # VAD reports the caller stopped speaking
"stt_first_partial": t1,
"stt_final": t2, # final transcript
"llm_first_token": t3,
"tts_first_byte": t4,
"audio_played": t5, # measured on the caller's side if possible
}
stages = {
"stt_partial": t1 - t0,
"stt_final": t2 - t0,
"llm_ttft": t3 - t2, # change the start point to t1 if the pipeline sends partials to the LLM
"tts": t4 - t3,
"network_and_buffer": t5 - t4,
"total": t5 - t0,
}
# collect 50-100 turns, compute mean and p95 for each stage
Interruptions: choose how turns are detected, then tune sensitivity
LiveKit defines interruption handling as deciding what the agent does when the user starts speaking over it. A bigger decision comes first: the turn detection mode, meaning how the system knows the caller has finished. LiveKit’s documentation advises settling this first, because it determines whether the other parameters still apply.
Do it the other way round and you can spend hours tuning VAD thresholds, then switch turn detection mode and find that some of the parameters you just tuned no longer have any effect.
For barge-in, another Future AGI guide sets a budget: TTS must stop within 60ms, and the total time until the TTS buffer is fully flushed must be under 150ms. The guide cites no independent benchmark, so this too is only a reference point.
The same author stresses that a false interruption is worse than a slightly late one, and sets a target false barge-in rate below 2%.
LiveKit calls this a false interruption: VAD hears a sound and stops the agent, but no transcript appears. The usual culprits are coughs or background noise. By default, the agent waits briefly and then resumes speaking.
In a contact center, this is what has to be tested in the field. Callers stand on the street, call from a market or from a motorbike, or drop in an “uh-huh” or “yes” while the agent is reading out a contract number. Record a few dozen calls in genuinely noisy conditions and count the false stops; don’t tune sensitivity on how it feels in the meeting room.
Handing over to a human: cold or warm?
There will always be calls the agent should not handle alone. The question is how to transfer them.
Cold transfer
- Uses SIP REFER to send the call elsewhere
- The caller's LiveKit session is closed
- The carrier's trunk must be configured to allow call transfer
Agent-assisted warm transfer
- The caller is placed on hold
- A supervisor is called into a private consultation room
- The agent summarizes the context before connecting the call
A cold transfer suits calls that only need to reach the right department, such as accounts. When the customer is upset or the problem is complicated, a warm transfer is almost always worth a few extra seconds on hold. LiveKit recommends its prebuilt warm transfer task for most cases rather than writing your own.
What the FDE really has to design is the summary. Say the agent tells the staff member in the consultation room:
“The caller is Lan, calling for the second time about a late delivery. She has verified her phone number and wants to cancel the order for a refund. She is fairly frustrated because she had a long wait last time.”
Those three sentences answer three questions: who is calling, what has been done, and what is needed next.
Steps when you start the work
Measure before optimizing: put timestamps on every stage, collect at least a few dozen turns, and report both the average and P95. Then compare against the budget table and find the stage that overshoots most. That is usually the first thing worth fixing.
Next, settle the turn detection mode with the client’s team, and only then tune barge-in using real audio from the contact center. Finally, sit down with the contact-center team lead to map the situations that must go to a human, decide which use a cold transfer and which a warm one, and write the summary template with them.
Common mistakes
The first mistake is reporting only average latency and measuring only the model, forgetting the network and buffers. The second is tuning barge-in too sensitively so the agent “stops really fast”, and then it stops every time a motorbike goes past.
The third is using cold transfers for everything, forcing customers to start again, or hand-writing a warm transfer flow when a prebuilt task already exists.
If you are preparing to apply for an FDE role, the three skills in this article can be told in numbers. On a CV, something specific such as “cut P95 mouth-to-ear from X to Y with streaming TTS and prefix caching” is far more persuasive than “built a voice agent”.
Exercise: add up the budget for a specific client
Suppose the client tells you their LLM’s TTFT at P95 is 220ms. Subtract 220ms from 500ms and 280ms remains for the network, STT, TTS and orchestration. The lower bounds of those four stages in the table are 30, 100, 80 and 50ms, which add up to 260ms.
That leaves just 20ms of slack across all four stages. The question to bring to the first meeting: which stage in the client’s current pipeline overshoots its lower bound the most, and can a provider change or a server move win that time back? Redo the calculation with the client’s real numbers before promising any latency target.
Contact-center callers do not grade the model’s intelligence. They remember only whether the agent kept them waiting, whether it talked over them, and whether, when they needed it, it passed them to a person who already knew the story.
Was this article useful?
Thanks for the feedback!
6 sources
- A Guide to Core Latency in AI Voice Agents (Cascaded Edition) · 2025-11-17
- Sub-500ms Voice AI: The Complete Latency Budget Guide for 2026 · 2026-03-12
- Configuring turn detection and interruptions in LiveKit Agents · 2026-06-30
- Voice AI Barge-In and Turn-Taking: A 2026 Implementation Guide · 2026-02-19
- LiveKit docs: Telephony › Transfers › Call forwarding
- LiveKit docs: Telephony › Transfers › Agent-assisted warm transfer