-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
minInterruptionWords in agent voiceOptions does not work. When the VAD detects speech but the STT produces an empty transcript, the interruption word count check is skipped due to text being an empty string and thus falsy:
https://github.com/livekit/agents-js/blob/main/agents/src/voice/agent_activity.ts#L615
The Python SDK does not include this text condition, so I'm not sure why this was added when it was ported to TS:
I'm trying to use minInterruptionWords to reduce false positives.
Relevant log output
No response
Describe your environment
System:
OS: macOS 15.6.1
CPU: (14) arm64 Apple M4 Pro
Memory: 93.88 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.19.0 - /Users/dennisstevense/.local/state/fnm_multishells/84832_1761094563423/bin/node
npm: 10.9.3 - /Users/dennisstevense/.local/state/fnm_multishells/84832_1761094563423/bin/npm
pnpm: 10.18.3 - /Users/dennisstevense/.local/state/fnm_multishells/84832_1761094563423/bin/pnpm
Watchman: 2025.10.06.00 - /opt/homebrew/bin/watchman
npmPackages:
@livekit/agents: 1.0.10 => 1.0.10
@livekit/agents-plugin-cartesia: 1.0.10 => 1.0.10
@livekit/agents-plugin-deepgram: 1.0.10 => 1.0.10
@livekit/agents-plugin-elevenlabs: 1.0.10 => 1.0.10
@livekit/agents-plugin-livekit: 1.0.10 => 1.0.10
@livekit/agents-plugin-openai: 1.0.10 => 1.0.10
@livekit/agents-plugin-silero: 1.0.10 => 1.0.10
@livekit/noise-cancellation-node: ^0.1.9 => 0.1.9
@livekit/rtc-node: ^0.13.20 => 0.13.20
Minimal reproducible example
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working