fix: prevent VAD from driving user_state when turn_detection=sst#5582
fix: prevent VAD from driving user_state when turn_detection=sst#5582MdSadiqMd wants to merge 13 commits intolivekit:mainfrom
Conversation
|
I think you should implement Option B described in the issue for a more reliable solution:
|
I thought Option A might be a good fit, as it just acts as a fix for the existing system, After thinking Option B makes more sense for long term, thus making the change now |
Yep but Option A (the one you implemented) has trade offs. I mean selecting vad/stt as |
|
@miguelmoralai, can you please verify the changes |
|
@claude review |
|
Looks like claude is not up cc: @miguelmoralai |
|
Bump @miguelmoralai |
Closes #5580
Summary
Added user_state_source configuration to TurnHandlingOptions with three modes: "vad", "stt", and "auto" (default). Implemented _vad_drives_user_state property in AudioRecognition that encapsulates the decision logic. VAD can now run for interruption detection without affecting user_state when user_state_source="stt", solving false positives from background noise. Fully backward compatible with default "auto" mode