All posts

Voice AI agent latency: turn detection, barge-in and why your agent talks over callers

Voice AI agent latency is not just model speed. How turn detection, endpointing and barge-in handling decide whether callers feel heard, and how to measure each stage.

CodeKrypt 5 min read

A voice agent can have an excellent model and still feel broken. It answers while the caller is mid-sentence, goes silent for a beat too long, or keeps talking after being interrupted. Voice AI agent latency is mostly about when the system decides it is the agent's turn to speak, and that is a design problem, not a model-speed problem.

This post covers where the delay comes from, how turn detection and barge-in work, and what to measure before you tune anything. It is about the domain, not any particular deployment; sources are linked inline. For the cost side of voice, see voice AI agent cost in India. For text-based features, the equivalent is LLM latency and time to first token.

Where does voice agent latency come from?

A voice turn is a chain, and every link adds delay. The Agentic AI Foundation's write-up on voice agent failures recommends breaking end-of-speech-to-audio latency into stages and measuring each separately:

  1. Endpointing (deciding the caller has finished)
  2. Speech recognition
  3. Inference
  4. Tool calls
  5. Speech synthesis
  6. Transport
  7. Playback

The same article cites research that gaps between conversational turns are "on the order of 200 milliseconds" in human conversation, while producing speech typically takes more than 600 milliseconds. People start planning their reply before the other person finishes, and a pipeline that waits for silence, then transcribes, then thinks, cannot match that. It does not give a universal service-level target, and neither do we: set one per task type.

Voice turn pipeline: endpointing, speech recognition, inference and tools, speech synthesis, transport and playback, with latency accumulating across stages.EndpointingRecognitionLLM + toolsSynthesisTransportPlaybackThe caller hears the sum of all six, so measure each one

How does turn detection decide when the caller is done?

There are a few approaches, and they trade responsiveness against interrupting people. LiveKit's turn detection documentation lists several modes:

Two failure modes follow. The AAIF article names premature responses (answering during a pause in "Can you move my appointment to... Thursday afternoon?") and excessive waiting (silence after the caller has finished, often because the system waits on a stage it does not need). Tuning for one tends to cause the other.

ApproachStrengthWeaknessFits
VAD-only silenceSimple, predictableCuts people off at pausesShort, scripted exchanges
Semantic turn detectionUnderstands unfinished sentencesExtra model in the pathOpen-ended conversation
STT-provider endpointingFewer moving parts to runTiming owned by the vendorTeams standardising on one provider
Realtime speech-to-speechFewer pipeline stagesLess control over each stageLatency-first, simpler flows

The AAIF article also notes that pause policy should be set per workflow: reading out an account number needs more patience than confirming a date.

What is barge-in, and what makes it fail?

Barge-in is the caller interrupting the agent. LiveKit's documentation describes an adaptive mode that distinguishes real barge-ins from backchannels ("mm-hm") using acoustic cues, versus a VAD mode where any detected speech interrupts. It also describes false interruptions: VAD hears something, stops the agent, and no transcript follows, as with a cough or background noise. By default the agent waits out a window and resumes where it left off. For noisy phone lines, LiveKit suggests adaptive mode, raising minimum duration or word thresholds, and telephony-tuned noise cancellation.

The AAIF article lists the less obvious failures, and these are the ones that cause real damage:

How do you measure it?

Averages hide what callers notice. The AAIF article's advice is to investigate the slowest interactions, not the mean, and to measure premature completions and unnecessary waiting rather than only detector accuracy. Practical starting metrics:

  1. End-of-speech to first agent audio, per stage, reported as percentiles.
  2. Rate of premature responses, from sampled call reviews.
  3. Time from the caller's interruption to the agent going silent.
  4. False-interruption rate on your real telephony audio.

Sampling calls for review is the same idea as measuring resolution rather than containment.

What should you decide before you build?

Where to start

Instrument the pipeline before tuning it: log stage timings and the played portion of each response for every call. Review the slowest and most interrupted calls weekly, and change one threshold at a time. If you are planning a voice agent and want the turn-taking and handoff design reviewed before launch, our AI automation team can help.

CodeKrypt avatar

CodeKrypt

Drafted by CodeKrypt's AI writing pipeline, built and maintained by our engineers, under fixed rules on sources and claims. How we write

Frequently asked questions

What is barge-in in a voice AI agent?
Barge-in is the caller interrupting the agent while it is speaking. The system has to detect real speech, stop playback, and drop the unplayed part of the answer, without reacting to coughs, background noise or its own echo.
Why does my voice agent talk over callers or wait too long?
Both come from turn detection. If the system decides a turn is over during a mid-sentence pause, it answers too early. If it waits on a stage it does not need, there is dead air after the caller finishes. Pause policy usually needs tuning per workflow.
What is a good latency target for a voice agent?
There is no universal number. Human turn gaps are on the order of 200 milliseconds, but a useful target depends on the task. Measure each pipeline stage and look at the slowest calls, not the average.
Does a faster LLM fix voice agent latency?
Only if the model is where the time goes. End-of-speech detection, speech recognition, tool calls, speech synthesis and network transport all add to the gap, so measure stage by stage before changing models.

Related reading

Chat on WhatsApp