Turn taking by the STT provider's own endpointing.
The user's turn ends with each non-empty final Transcription from the
STT stage, which this stage replaces with one carrying a turn_id, after
UserStoppedSpeaking. Barge-in happens once per stretch of speech, on
whichever comes first: VADUserStartedSpeaking or an interim transcript
(the VAD can miss speech that the STT provider hears). Without a VAD, a
stretch lasts until the turn's final transcript.
Options:
:interrupt(defaulttrue):falseleaves out theInterruptionand pushes onlyUserStartedSpeaking, for an agent's per-speaker front ends, where the agent decides who may interrupt.:vad(defaulttrue): whether a VAD stage runs upstream.:finalize_on_vad(default: the value of:vad): whentrue,VADUserStoppedSpeakingpushesFinalizeTranscriptupstream if speech hasn't finalized yet, instead of waiting on the STT provider's silence timeout.:preemptive(default: the value of:finalize_on_vad): whentrueand a non-empty interim transcript was seen,VADUserStoppedSpeakingalso pushesPreemptiveTranscriptiondownstream so the LLM can start while STT finalizes.