cuddly-megabyte-9880
10/22/2025, 9:17 AMmin_interruption_words and min_interruption_duration mutually exclusive?refined-appointment-81829
10/22/2025, 11:37 AMmin_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.cuddly-megabyte-9880
10/23/2025, 6:08 AMcuddly-megabyte-9880
10/23/2025, 1:19 PMmin_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.