Stop guessing why your AI voice agent feels slow: measure the silence, not the model
When an AI voice agent feels slow, the conversation inside most teams goes the same way. Someone says the model is too slow and we should try a faster one. Someone else blames the text-to-speech voice. A third person is sure it's the interruption handling. Everyone has a theory, and the theories get tested by swapping vendors.
I run an AI phone agent in production. It answers real inbound calls in Urdu and English for a vehicle tracking company: callers look up their vehicles and file complaints, and the agent does that by calling our backend APIs mid-conversation. I'd never worked with telephony or calling systems before building it.
When the pauses got long enough for callers to feel them, we had our theories too. What actually fixed it wasn't a better model. It was going through 736 real call turns, one by one, and finding out where the silence came from. The answer surprised us, and silence per turn dropped from about 3 seconds to 1-2.
Here's my opinion, after doing it: most voice agent latency problems are diagnosed by gut feeling, and the gut is usually wrong.
The metric that matters is silence
Your caller doesn't experience "model latency" or "tokens per second". They experience one thing: how long it's quiet after they stop talking.
That silence is the sum of everything between the end of their sentence and the first sound of the reply:
- detecting that the caller has actually finished speaking,
- speech-to-text producing the final transcript,
- the model deciding what to do,
- any tool calls to your backend, sometimes more than one,
- the model writing the reply,
- text-to-speech producing the first audio.
Vendor benchmarks measure one of those steps in isolation, under ideal conditions. Your caller gets the sum, under your conditions. If you only look at the step a vendor advertises, you'll optimise the wrong thing with great confidence.
Why gut feeling fails here
Three things make voice latency especially easy to misjudge:
- The slow turns are the memorable ones. A team hears a recording with a 6-second pause and generalises from it. But a handful of terrible turns and a consistently sluggish median need completely different fixes.
- Different turns do different work. "Hello, how can I help?" needs no backend. "What's the status of my vehicle?" needs a lookup. "I want to file a complaint" might need several calls. Averaging them together hides exactly the turns that hurt.
- The layer you can hear gets the blame. Voice and interruptions are audible, so they feel like the problem. Your backend is silent, so it's invisible, even when it's the one making the caller wait.
In our case, one strong suspect was barge-in handling, the logic that lets a caller interrupt the agent. It sounded plausible: when interruptions are handled badly, conversations feel awkward and slow. The data ruled it out. The dominant cost was our own backend API, the quiet part of the turn that's easy to overlook because it never makes a sound.
How to actually measure it
You don't need fancy tooling to start. You need timestamps for each stage of a turn and a way to join them.
- Get a per-turn timeline. Most voice platforms give you conversation transcripts with timing for each turn, and your backend has its own request logs. Put a conversation or call ID on every tool call so you can join the two.
- Break every turn into stages. For each turn, record when the caller stopped speaking, when each tool call started and finished, and when the agent's audio started. Now each turn's silence splits into "waiting on the platform and model" and "waiting on our backend".
- Group turns by what they do. Greeting turns, lookup turns, complaint turns. Look at the distribution for each group, not one overall average.
- Read the bad turns, not just the numbers. Go through a real sample, a few hundred turns, and look at the worst ones per group. Patterns jump out quickly when you see the timeline next to the transcript: the same endpoint is slow every time, or the agent calls two APIs one after the other when one would do.
That's the approach we took, across 736 turns. It isn't glamorous, it's careful reading of real data. But once the timeline is in front of everyone, there's very little left to argue about.
What the data usually tells you
Once we knew the backend was the bottleneck, the fixes were ordinary backend work, not AI work. And from what I've seen, that's the common case. Some patterns worth checking in your own agent:
- APIs built for humans are slow for agents. An endpoint designed for a web page might be fine at 1-2 seconds, because a human is scrolling. In a voice turn, that same 1-2 seconds is pure dead air, on top of everything else.
- Chatty tool design. If the agent needs three calls in sequence to answer one question, the caller waits for all three. One agent-shaped endpoint that returns exactly what the agent needs, in one round trip, often beats any model upgrade.
- Cold paths. The first request after a quiet period can be dramatically slower than the rest. Agents are machines with a stopwatch: they hit your worst path more often than you think. (I wrote about a 9-second version of this separately.)
- Accuracy fixes that add latency to every turn. Fix accuracy where it fails, not everywhere.
That last one deserves an example.
The accuracy trap: fix the hard cases without taxing the easy ones
Our callers speak Urdu and English, and they say vehicle makes and number plates that general speech models often get wrong. The obvious fix is to run a heavier, slower recognition step on every turn. That makes every turn slower to fix the minority that are hard.
Instead, we built a hybrid pipeline: a primary speech-to-text model handles the turn, and a fallback for domain terms kicks in only when needed, with a hard cap of 2.5 seconds. Clean turns pay nothing extra. Hard turns get better recognition. And no turn can blow up the conversation, because the fallback has a ceiling.
The general rule: when you add something to improve quality, decide its latency budget first, and enforce it. An accuracy improvement without a cap is a latency regression waiting to happen.
My opinions, plainly
- Measure silence per turn, by turn type, before changing anything. If you can't say where the seconds go, you're not ready to switch vendors.
- The model is rarely your biggest problem. Tool calls, backend endpoints and sequential round trips usually are. They're also much cheaper to fix than a model migration.
- Design APIs for the agent, not just for the UI. Fewer round trips, smaller responses, predictable latency.
- Every quality feature needs a latency budget. Caps and fallbacks beat "always run the expensive thing".
- Read real conversations. Dashboards tell you that something is slow. Transcripts next to timelines tell you why.
Building a voice agent with no telephony background taught me that the hard part isn't the AI. It's the same thing that's always hard in production systems: knowing where the time goes, and being honest when the data says your favourite theory is wrong.
Comments
No comments yet. Start the discussion.