After upgrading livekit agents to >=1.2.0 - I have...
# agents
p
After upgrading livekit agents to >=1.2.0 - I have noticed the agent is really susceptible to even low volume background noise and gets interrupted quickly. I have already enabled background noise cancellation supported in livekit cloud. The problem with these interruptions is that the agent becomes unresponsive at times and feels like something went wrong and the user has to speak again to invoke the agent. The
AgentFalseInterruption
event also was not helpful in these cases as the agent gets stopped because of very small noise. This is important in telephony usecase where we don't have a UI to show that there was nothing wrong on the agent side Anyone else facing this issue? How are you guys solving this?
@jolly-air-155 - anyway I can capture more debugging information to share here or learn myself on why these interruptions occur. Appreciate your help. It is really unclear why the agent suddenly stops speaking with very little noise in the background.
m
Commenting as I think this is related to my issue here. When we listen back to the call recording, the user is speaking very clearly, but the turn detection seems to over-activate (interrupt) or not activate at all
r
What version of LiveKit are you running
pip freeze |grep livekit
m
I try to keep everything pretty up to date. Here's what I have:
Copy code
livekit==1.0.12
livekit-agents==1.2.6
livekit-api==1.0.5
livekit-blingfire==1.0.0
livekit-plugins-azure==1.2.6
livekit-plugins-cartesia==1.2.6
livekit-plugins-deepgram==1.2.6
livekit-plugins-elevenlabs==1.2.6
livekit-plugins-google==1.2.6
livekit-plugins-noise-cancellation==0.2.5
livekit-plugins-openai==1.2.6
livekit-plugins-rime==1.2.6
livekit-plugins-silero==1.2.6
livekit-plugins-tavus==1.2.6
livekit-plugins-turn-detector==1.2.6
livekit-protocol==1.0.5
r
Are there steps I can perform to reproduce this with basic_agent.py ?
m
In our case I think that would be really hard to reproduce unfortunately. With our current code it seems to happen more frequently for specific users, and not at all for the vast majority of users. I myself have never experienced it when i do a call
I know that gives you very little to work with, but if there's any gut feelings or intuition you have, that would be helpful! Or just for tracking purposes if a large number of these reports start coming in
p
These are the livekit versions.
Copy code
livekit==1.0.12
livekit-agents==1.2.6
livekit-api==1.0.5
livekit-blingfire==1.0.0
livekit-plugins-anthropic==1.2.6
livekit-plugins-cartesia==1.2.6
livekit-plugins-deepgram==1.2.6
livekit-plugins-elevenlabs==1.2.6
livekit-plugins-google==1.2.6
livekit-plugins-noise-cancellation==0.2.5
livekit-plugins-openai==1.2.6
livekit-plugins-silero==1.2.6
livekit-plugins-turn-detector==1.2.6
livekit-protocol==1.0.4
To reproduce - if you have some background noise like TV noise or someone speaking in the back should get this reproduced where the agent gets interrupted very often. And if you pair that with a high latency model like claude-3.5. The experiece becomes really frustrating.
r
Are you using noise cancelation?
p
Yes I am using noise cancellation
j
does this happens before 1.2.0? I didn’t see a change for the VAD interruption from 1.1.x to 1.2, but there is two new features coming that might be helpful: auto pause/resume false interrupted agent speech, and suppressing background speakers based on STT diarization
p
Thanks for sharing the latest PR features
does this happens before 1.2.0?
The interruption before 1.2.0 was not that sensitive. Recently it has started to get interrupted for very low noise too. Is there a way to share some more debugging data to get more help from you on this? Should I share VAD metric logs for this? I am not using any custom params for VAD too, just using default
VAD.load()