On a phone call, silence is the whole product. A web chatbot can take two seconds to answer and nobody blinks. A voice bot that takes two seconds feels broken.
On a voice bot I worked on, a question answered from a knowledge base took 2.13s from the caller finishing to the bot starting its reply. I got that to 0.87s. Here is what I learned, including the thing I got wrong first.
What didn't work: a bigger model
The obvious move is to upgrade the LLM. It didn't help. The wait wasn't mostly the model thinking. It was the steps around it stacking up one after another.
What did work
- Prefill. Do the work that doesn't depend on the caller's last words before they finish talking. Retrieval and prompt assembly are good candidates, because you can start them on partial transcripts.
- Lookahead. Start the likely next step early instead of waiting for a clean handoff. If you are 90% sure you'll need something, begin fetching it and throw it away when you're wrong.
- Parallel tool calls. Lookups that don't depend on each other should run together, not in a queue.
- Hedged requests. If a call is slow, send a second one and use whichever comes back first. One unlucky response stops setting the pace for the whole turn.
The habit underneath all of it
Time every stage of a turn separately: speech-to-text, retrieval, LLM, text-to-speech. Averages hid the problem for me. The slow turns held the time, so I started reading those first.
Takeaway
2.13s to 0.87s, and the model was never the fix. If your voice agent feels slow, don't touch the model first. Put a timer on each stage and see where the seconds go.
If you build voice agents too, I'd like to hear what you check first when one feels slow.
More about me: bytetrooper.github.io/portfolio
