Services

Accelerators

Resources

Company

Services

Accelerators

Resources

Company

/

Barge-in

Barge-in

Barge-in is when the caller starts talking while a voice AI agent is still speaking. An agent that supports it stops its own audio, cancels the reply it was generating, and listens. Without it, callers have to wait out long answers, which feels like talking to a recording.

How it works

When voice activity detection hears speech during playback, the agent stops the text to speech output, throws away queued audio, cancels the LLM request in flight, and trims its conversation history to the words the caller actually heard. Every stage must be cancellable for this to work.

For example, the agent starts listing five open slots and the caller says “Thursday works” after the second. With barge-in, the agent stops within a few hundred milliseconds and books Thursday. Without echo cancellation, though, the agent can hear its own voice through the caller’s speaker and interrupt itself.

Why it matters in production

Barge-in needs tuning. Coughs, background voices and short “mm-hm” acknowledgements should not stop the agent, so many systems require a minimum amount of speech or a few recognised words before they treat it as an interruption. Track how often replies are cancelled: a rising rate can mean replies are too long or echo is leaking.

See also

On the One2N blog

References

  1. Voice AI and voice agents: an illustrated primer (Daily)

  2. Pipecat documentation

Comic about barge-in: a voice agent reads out every free slot while Pat tries to say Thursday works; with barge-in the agent hears Pat, stops its audio, cancels the reply and drops queued audio, going quiet a few hundred ms after Pat speaks; without echo cancellation the mic hears the agent's own voice and it stops itself; the fix keeps going on a short mm-hm and stops on real speech.

Putting this into practice?

Talk to One2N about our AI engineering services

Talk to One2N about our AI engineering services