Speech-to-Speech and Expressive Voice › Turn-taking, barge-in, and backchannels
Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters A caller can talk over playback or acknowledge an answer with a short sound. Handle overlap at the interaction layer. Overlapping input and output streams are possible, as the Moshi example illustrates.
Three failures to guard against:
- Barge-in. The user starts talking while the agent is still speaking. The agent must stop producing audio without losing its place in the conversation. This requires the agent to be able to cancel its queued audio, recover whatever it had said, and resume context-aware on the new input. The hard part is the "recover its place" step: the agent needs to know what portion of its planned utterance actually reached the user's ears before the interruption, because responding to "what did you mean by that" requires knowing what "that" referred to.
- Incoming backchannels. A short acknowledgment can mean the user wants the agent to continue. Evaluate that outcome separately from an interruption that should stop playback.
- Outgoing backchannels. An agent may acknowledge a long user turn. Evaluate the timing and whether the acknowledgment masks the user's ongoing speech or signals that the agent is taking the turn.
Turn detection is a classification problem, not a threshold
A duration threshold is a baseline. A turn detector can combine pause duration with recent audio and partial transcripts. Compare premature endings and decision delay across the languages and noise conditions you support.
Evaluate turn detection and barge-in separately from content quality. A lower word error rate can coexist with premature cutoffs or playback continuing over the user.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!