For above message - TL;DR : `min_interruption_wor...
# agents
c
For above message - TL;DR :
min_interruption_words
and
min_interruption_duration
mutually exclusive?
r
Add agent_activity.py No, they are not mutually exclusive. Both parameters can be used together and serve different purposes in the interruption detection system. agent_activity.py:1107-1116
min_interruption_words
checks if the user has spoken enough words before allowing an interruption: agent_activity.py:1107-1116
min_interruption_duration
checks if the user's speech has lasted long enough (in seconds) before triggering an interruption: agent_activity.py:1173-1174 How They Work Together The system uses both checks in different contexts: 1. During VAD inference (
on_vad_inference_done
): Only
min_interruption_duration
is checked to determine if speech has been long enough to trigger an interruption agent_activity.py:1173-1174 2. During audio activity interruption (
_interrupt_by_audio_activity
): Only
min_interruption_words
is checked when STT is available agent_activity.py:1107-1116 3. At end of turn (
on_end_of_turn
):
min_interruption_words
is checked again to prevent interruption if the transcript is too short agent_activity.py:1271-1283 Notes The two parameters work at different stages of the interruption pipeline:
min_interruption_duration
operates at the VAD level (raw audio detection), while
min_interruption_words
operates at the STT level (transcribed text). This allows for more nuanced control over when interruptions should be allowed - you can require both a minimum duration of speech AND a minimum number of words to be spoken before allowing an interruption.
c
Thanks @refined-appointment-81829 this was very helpful.
So taking an example, if I have
min_interrupton_words
as 0, and
min_interruption_duration
as 20 seconds, in that case if I say one word for a looong time, it wont be interrupted? Say I say: 'Helloooooo' for 18 seconds, not 20, it wont be interrupted then? NOTE: I had stated another example in another message just above this, I can't find it, but I had mentioned 2 examples, sorry I was finding it a bit confusing.