A support team ships a voice assistant. In the demo it sounds sharp: the answers are correct, the voice is pleasant, and the transcript is clean. Then real callers use it. They say "hello?" a second time because nothing happened after the first one. They talk over the assistant's greeting because the pause before it felt like a dropped call. Two people on the same line describe the same product as "smart" and "laggy", and the dashboards agree with the second description: the average response is fine, but the slowest tenth of turns are long enough that callers give up.
Nothing in that story is a model-quality problem. It is a latency problem, and voice is the interface where latency is the product. In text chat a two-second wait is an annoyance. In speech, people in conversation switch turns after a gap that studies of turn-taking across many languages put at roughly a fifth of a second, so a delay several times that reads as hesitation, confusion or a broken line. This article walks through where the time goes in a conversational voice pipeline, which techniques remove it, which ones only move it around, and when chasing 300 ms is the wrong goal.
1. What "sub-300 ms" measures, and what it does not
Start by pinning the metric, because most arguments about voice latency are arguments about different clocks. The number that matters to a caller is time to first audio: the interval between the moment they stop speaking and the moment the first sound of the reply reaches their ear. Call it voice-to-voice latency. It is not the model's time to first token, it is not the speech recognizer's final-transcript time, and it is not the time to synthesize the full answer. Each of those is a segment of the interval, and each team tends to report the segment it owns.
Be honest about what 300 ms means in practice. If the language model runs in a remote data center, the round trip to the model, its prefill over the prompt, and the first generated token already consume a large share of 300 ms on their own. A cascade of separate recognition, reasoning and synthesis stages can reach that number only when every stage streams, the stages overlap in time, the models are small or well placed, and the network path is short. For many production systems the realistic target is a median somewhere in the high hundreds of milliseconds with a controlled tail, and "under 300 ms" is a goal for narrow, well-engineered paths: confirmations, short answers, on-device or edge deployments, and speech-to-speech models.
Two properties of the metric are worth stating early. First, it is a distribution, not a number. A p50 of 400 ms with a p99 of 3 seconds feels worse than a p50 of 600 ms with a p99 of 900 ms, because callers remember the stalls. Second, it depends on the turn. A reply that needs a database lookup cannot match "yes, I can help with that", and a good design covers the gap honestly, as section 6 shows.
2. The latency budget: where the time actually goes
Treat the turn as a pipeline with a budget, the way you would treat a page-load budget. Every stage from the end of speech to the first audible sample belongs on the list, including the ones nobody owns.
- Capture and uplink. Microphone buffering, encoding, and the network hop to your server. Audio is chunked into frames, typically on the order of 10 to 40 ms each, and the last frame cannot be sent before it is recorded.
- Endpointing. The system must decide the user has finished. This is usually the single largest voluntary delay, because the detector waits for silence before it commits.
- Final recognition. A streaming recognizer has usually transcribed most of the sentence already; the remaining cost is the tail of the last word and any rescoring.
- Reasoning. Prompt processing (prefill), then the first generated token. Prefill cost grows with prompt length, so a bloated system prompt and a long history are paid for on every turn.
- Text to speech. Time until the synthesizer emits its first audio chunk, which depends on how much text it needs before it can start.
- Downlink and playback. Network, jitter buffer, decoding and the audio output buffer on the device.
The useful discipline is to write these as a table of your own measured values, per stage, at p50 and p95. Teams that do this almost always find the same thing: the model is not the biggest line item, or at least not the only one. Endpointing silence, a non-streaming synthesizer, a distant region, and a jitter buffer sized for the worst network each add a visible slice, and none of them show up in the model provider's dashboard.
3. Endpointing: deciding that the user is done
Endpointing is where the trade-off is sharpest, because it is a bet on the future. If the detector declares the turn over after a short silence, the assistant answers quickly but cuts off people who pause to think, spell a number, or draw breath mid-sentence. If it waits longer, the assistant is safe against interruption and every turn pays the wait.
Voice activity detection is only the first layer
A voice activity detector (VAD) classifies short frames as speech or not-speech. Small neural VAD models run comfortably on a CPU in real time, which is why they are a common default. But VAD answers "is there sound that looks like speech right now", not "has the person finished their thought". A 300 ms silence after "my account number is four five" is not the end of a turn, and a 300 ms silence after "thanks, that's all" is.
Making the silence threshold depend on content
The practical improvement is to make the wait adaptive rather than fixed. Signals that are cheap to compute and genuinely informative:
- Syntactic completeness of the partial transcript. A sentence ending in a conjunction, a preposition or a digit group is probably unfinished, so extend the wait. A complete question or a closing phrase can use a short wait.
- Prosody such as falling pitch at the end of a statement versus a sustained or rising tone, if your stack exposes it.
- Dialogue state. If the assistant just asked a yes/no question, a short "yes" is a complete turn; if it asked for an address, expect pauses.
- A learned turn-detection model that takes the transcript, and sometimes the audio, and outputs a probability that the turn is over. This is the more principled version of the heuristics above.
Whatever you choose, treat the false-cutoff rate as a first-class metric next to latency. Lowering the threshold always improves your median and always worsens how often you talk over someone. A defensible compromise is two thresholds: a short one that starts speculative work (section 4) and a longer one that commits to speaking. If the user resumes inside the gap, you discard the speculation, which costs compute but not conversation quality.
4. Streaming everything: recognition, reasoning and synthesis overlap
The structural change that matters most is to stop treating the pipeline as three batch jobs. Each stage should consume partial input and emit partial output, so the stages run concurrently on the same utterance.
Streaming recognition and speculative starts
A streaming recognizer emits interim hypotheses while the person is still talking. That lets you prepare before the endpoint: load the user's profile, retrieve relevant documents using the interim transcript, warm the model connection, and pre-compute the prefix of the prompt that does not depend on the last words. Prefix reuse is the big one. If your serving stack caches the key-value state for a stable prompt prefix, then the system instructions, tool definitions and earlier conversation do not need to be reprocessed every turn, and only the new user text is prefilled. Keep the stable parts of the prompt first and the volatile parts last, or the cache never hits.
The more aggressive version starts the language model on an interim transcript as soon as the short threshold fires, and cancels it if the final transcript materially differs. This buys back most of the reasoning latency when the guess is right. It costs wasted generations when it is wrong, so measure the hit rate before relying on it, and cap how many speculative calls a single turn can start.
Sentence-level streaming into synthesis
The language model produces tokens incrementally, and a synthesizer that accepts incremental text can begin speaking after the first clause. The common pattern is to buffer tokens until a sentence or clause boundary, then hand that chunk to the synthesizer while the model continues. Tune the first chunk differently from the rest: the first needs to be short enough to start quickly (a comma-delimited clause is often fine), while later chunks can be longer for more natural prosody, because by then the playback queue is already running ahead of the listener.
Prompt the model for speech, too. A reply that begins with a short acknowledgement or the direct answer gives the synthesizer something to say within the first handful of tokens. A reply that begins with a restatement of the question and three caveats burns the benefit of every streaming optimization upstream. Short sentences and no markdown are cheap to enforce in the system prompt and visible in the metric.
| Technique | What it removes from the turn | Main cost or risk | Where it pays off |
|---|---|---|---|
| Streaming ASR with interim results | Waiting for a batch transcript | Interim text can change; downstream must tolerate revisions | Every pipeline; baseline requirement |
| Adaptive endpointing | Fixed silence wait after every utterance | More complexity; false cutoffs if tuned too low | Mixed conversations with short and long turns |
| Prompt prefix caching | Re-prefill of system prompt and history | Needs stable prompt ordering; cache eviction under load | Long system prompts, many tools, long dialogues |
| Speculative LLM start | Most of the reasoning wait | Wasted compute on wrong guesses; cancellation logic | Predictable, short utterances |
| Clause-level TTS streaming | Waiting for the whole reply to be generated | Prosody across chunk boundaries; can't revise spoken text | Any reply longer than a few words |
| Edge or regional deployment | Round trips to a distant region | Operational footprint; smaller models at the edge | Global user base, strict latency targets |
The table is qualitative on purpose. How much each row is worth depends on your models, region and audio path, so measure them on your own traffic before ordering the work.
5. Transport and the network floor
Below the application logic sits a floor set by physics and by protocol choice. Light in fiber covers roughly 200 km per millisecond, so a continent-scale round trip costs tens of milliseconds before any processing. What you can choose is how many round trips the turn needs and what transport carries the audio.
For browser and mobile clients, WebRTC is built for this job: UDP-based transport, congestion control, echo cancellation and noise suppression available in the client, and jitter handling designed for interactive audio. A WebSocket carrying audio frames over TCP is simpler to deploy and debug, and works well on good networks, but a lost packet stalls everything queued behind it (head-of-line blocking), which shows up as exactly the p99 stalls this article is trying to remove. Telephony adds narrowband codecs and carrier jitter you do not control.
Three practical points follow. Co-locate recognition, the model and synthesis in the same region, or better the same network, so inter-stage calls are not cross-ocean. Keep connections warm: a TLS and WebSocket handshake paid at the start of a turn is latency you chose. And size the jitter buffer deliberately; a large buffer hides network variance at the price of added delay on every turn, and an adaptive buffer is usually the better trade.
6. Barge-in, cancellation and covering the slow turns
A fast assistant that cannot be interrupted is still rude. When the caller starts speaking during playback, the system has to stop speaking within a fraction of a second, discard queued audio, cancel any in-flight generation, and treat the new speech as the next turn. Echo is the complication: if the microphone hears the assistant's own voice, the VAD fires on it and the assistant interrupts itself. Acoustic echo cancellation on the client, and ignoring input that correlates with the playback signal, are the standard defenses.
The following sketch shows the control structure in Python: a response task that streams sentences from the model into the synthesizer and a playback queue, plus a barge-in event that cancels the task and flushes the queue. The recognizer, model and synthesizer are passed in as async callables so the concurrency logic stays visible.
import asyncio
import re
import time
CLAUSE_END = re.compile(r"[.!?,;:]\s|\n")
class Turn:
"""Records monotonic timestamps so every turn reports its own latency."""
def __init__(self):
self.marks = {}
def mark(self, name):
self.marks.setdefault(name, time.monotonic())
def report_ms(self):
base = self.marks["user_stopped"]
return {k: round((v - base) * 1000) for k, v in self.marks.items()}
def next_boundary(buf, min_chars):
for m in CLAUSE_END.finditer(buf):
if m.end() >= min_chars:
return m.end()
return None
async def clauses(token_stream, first_min_chars=12):
"""Group streamed tokens into clauses; emit the first one early."""
buf, emitted_first = "", False
async for tok in token_stream:
buf += tok
end = next_boundary(buf, 1 if emitted_first else first_min_chars)
while end:
yield buf[:end].strip()
buf, emitted_first = buf[end:], True
end = next_boundary(buf, 1)
if buf.strip():
yield buf.strip()
async def respond(transcript, llm, tts, playback, turn):
async for clause in clauses(llm(transcript)):
turn.mark("first_clause")
async for audio_chunk in tts(clause):
turn.mark("first_audio")
await playback.put(audio_chunk)
await playback.put(None) # end-of-reply sentinel
async def run_turn(transcript, llm, tts, playback, turn, barge_in):
reply = asyncio.create_task(respond(transcript, llm, tts, playback, turn))
interrupted = asyncio.create_task(barge_in.wait())
done, pending = await asyncio.wait(
{reply, interrupted}, return_when=asyncio.FIRST_COMPLETED
)
for task in pending:
task.cancel()
if reply not in done: # user spoke over us: stop generating, drop queued audio
while not playback.empty():
playback.get_nowait()
return "interrupted"
reply.result() # surface exceptions from the response task
return "completed"
Two details matter beyond the sketch. Cancel the upstream model call itself, not just your reading of it, or you keep paying for tokens nobody will hear. And record what was actually spoken before the interruption and put that, not the full planned reply, into the conversation history; otherwise the model believes it said things the caller never heard.
Covering turns that are slow for a good reason
Some turns need a tool call, a search or a human-scale lookup, and no streaming trick makes them instant. The honest fix is to acknowledge the wait with something short and true ("one moment, checking that") emitted while the work happens, rather than silence. Keep these fillers sparse and varied, tie them to real pending work, and never use them to hide a slow path you could have fixed; a caller who hears the same filler every turn learns that it means nothing.
7. Cascade versus speech-to-speech models
An alternative to the three-stage cascade is a model that takes audio in and produces audio out directly. Removing the intermediate text boundary removes the stage-to-stage handoffs, can preserve information that transcription discards (tone, hesitation, emphasis), and is the most direct route to very short response gaps. It also changes the engineering trade-offs.
- Control. In a cascade the text between stages is inspectable: you can log it, filter it, apply policy to it, and unit test the reasoning stage with text. With an audio-native model, the same checks need audio-aware tooling or a parallel transcript.
- Tools and grounding. Cascades make retrieval and function calling straightforward because the reasoning stage is an ordinary language model call. Audio-native systems support tools, but the maturity, latency and observability of that path vary by vendor and change quickly; verify against your own requirements rather than a spec sheet.
- Voices and languages. A cascade lets you choose recognition and synthesis independently per language and swap a voice without touching reasoning. Coverage for less common languages and accents is often better in a cascade with a specialized recognizer, though this too is a moving target.
- Cost and failure modes. Audio tokens and always-on sessions are priced differently from text, and the failure modes differ: a cascade fails visibly at a stage boundary, while an end-to-end model can fail in ways that are harder to localize.
A reasonable policy is to default to a well-instrumented streaming cascade when you need auditability and tool use, and to evaluate an audio-native model for conversation-heavy, tool-light experiences where naturalness of timing dominates. Run both against the same recorded calls before committing.
8. Measuring honestly, and when 300 ms is the wrong target
You cannot tune what you cannot see, and voice pipelines are easy to measure badly. Log a timestamp at each stage boundary in the same monotonic clock (as Turn does above) and ship the per-stage durations with the turn id. Measure at the client too, because server-side timestamps cannot see capture buffering, network delay or the playback buffer. Report p50, p95 and p99 per stage, segmented by the things that actually vary: network type, region, utterance length, whether a tool was called, whether speculation hit.
Common failure modes
- Optimizing the median. The tail is what callers talk about. A retry, a cold connection or a garbage-collection pause moves one turn from fast to unusable.
- Tuning on clean audio. Test sets recorded in a quiet room hide the noise, accents, speakerphone echo and cross-talk that dominate real traffic and wreck endpointing.
- Speculation without a budget. Unbounded speculative generations raise cost and load, and under load they slow the turns they were meant to speed up.
- Hidden queueing. A shared GPU or a thread pool sized for average load turns a bursty minute into multi-second first-token delays.
- Silence after errors. A failed synthesis or tool call that produces no audio at all is worse than any slow reply. Every failure path needs a spoken fallback.
When not to chase it
Do not sacrifice correctness for speed on turns where the answer must be right: reading back an amount, confirming an irreversible action, handling an emergency. A deliberate beat followed by a precise answer is better than a fast guess. Do not shrink the endpointing wait so far that you interrupt callers who are slow, elderly, non-native speakers or dictating long numbers; the speed gain is real and the harm lands on exactly the users who most need patience. And if your users are in a text-first channel with occasional voice notes, an asynchronous reply is the right design and real-time engineering is wasted effort.
9. Decision checklist, questions people ask, and what to do on Monday
Decision checklist
- Do you measure voice-to-voice latency at the client, per turn, with per-stage breakdown?
- Does every stage stream partial output into the next one?
- Is endpointing adaptive, and do you track false cutoffs alongside latency?
- Is the stable part of the prompt first and cached, and is the prompt as short as it can be?
- Are recognition, model and synthesis in the same region, with warm connections?
- Can the caller interrupt, with cancellation reaching the model call and the history recording only spoken text?
- Does every error and slow-tool path produce speech?
- Have you compared a cascade against an audio-native model on your own recordings?
Questions people ask
Is sub-300 ms realistic with a large cloud model? Rarely for the median of every turn, because model round trip and first-token time consume most of the budget. It is realistic for short, predictable replies, for edge or on-device components, and for pipelines that begin speaking a pre-planned acknowledgement while the model works. Aim for a controlled tail first.
Should I just lower the silence threshold? It is the cheapest change and the most harmful if used alone. Pair it with content-aware endpointing and speculative work so a short wait does not mean a short fuse.
What to do on Monday
- Add per-stage timestamps to one production path and plot p50, p95 and p99 for each stage.
- Find the largest stage that waits for another to finish and convert it to start on partial output.
- Record twenty real, noisy calls, replay them through your endpointing, and count the false cutoffs before changing any threshold.
- Move volatile content to the end of the prompt and confirm your serving stack reports prefix cache hits.
- Write a spoken fallback for every failure path, then test it by killing each dependency in staging.
None of these require a new model. Most voice latency is bought back by removing waiting, not by making any single component faster.