Why do I hear a noise right before the agent start...
# ask-ai
w
Why do I hear a noise right before the agent starts always talking?
t
Thanks for reaching out, Arthur. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That noise you’re hearing before the agent starts talking could be happening for a couple of reasons: • Intentional background audio: LiveKit sometimes plays background sounds—like ambient noise or little “thinking” sounds—while it’s working behind the scenes. This is done using a feature called
BackgroundAudioPlayer
to make the experience feel smoother. • Unintended environmental noise: If noise cancellation isn’t set up just right, some outside noise might sneak in before the agent starts speaking. Using enhanced noise cancellation tools, like Krisp integration, can really help cut down on that. If you want, I’m here to help you set up or turn off any of these features—just give me a shout! Sources: SIP troubleshooting guide | LiveKit Docs | Audio and video | LiveKit Docs | livekit-agents/livekit/agents/voice/background_audio.py | External data and RAG | LiveKit Docs | AI voice agents | LiveKit Docs
w
Can I use krisp in SIP calls with my agent?
t
Absolutely! You can use Krisp with SIP calls alongside LiveKit agents to make your audio sound much clearer. Here’s a quick rundown of how it works: • Outbound SIP Calls: Just set the
krisp_enabled
attribute to
true
when you’re making a
CreateSIPParticipant
API request. • Inbound SIP Calls: You can turn on Krisp at the trunk level by including the
krisp_enabled
attribute in the
CreateSIPInboundTrunkRequest
API. This neat feature is part of LiveKit’s telephony integration, so your phone calls can smoothly connect into LiveKit rooms. If you want, I’m here to help you set it up or answer any questions! Sources: lib/livekit/sip_service_client.rb | Agents telephony integration | LiveKit Docs | Agents telephony integration | LiveKit Docs | AI Agents Framework | livekit/livekit_composite | DeepWiki | SIP overview | LiveKit Docs
w
Whats difference between BVC nosie cancellatoion and Krisp?
t
Let’s break down the difference between BVC (Background Voice Cancellation) and Krisp so it’s a bit easier to follow: • Krisp: This is the noise cancellation tech LiveKit uses to help block out background sounds like traffic or music. It works right on your device (client-side) before the audio is sent, and it’s available on platforms like Web, Swift, Android, Flutter, and React Native. • BVC: Think of this as a supercharged part of Krisp. It not only cancels background noise but also filters out other voices that aren’t the main speaker (like people chatting nearby). It’s designed to run on the server (inbound) and is especially helpful for AI voice apps to get better speech-to-text results and detect who’s talking more accurately. LiveKit suggests using BVC when your AI agents are handling incoming audio, and it’s best not to mix it with Krisp’s client-side filtering, since pre-filtered audio can actually make the AI less effective. If you want, I’m here to help with any questions or to guide you through setting it up! Sources: Noise & echo cancellation | LiveKit Docs | Enhanced noise cancellation | LiveKit Docs