My Agent gets interrupted by background voices whi...
# ask-ai
l
My Agent gets interrupted by background voices which are in low volumn. How to fix that
t
Thanks for reaching out, Deepak. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're seeing low-volume background voices interrupt your agent — to stop that, enable Background Voice Cancellation (BVC) in the agent's audio input. BVC removes non-primary voices so only the main speaker triggers transcription and turn detection. Choose your platform: • Python a. Install:
uv add "livekit-plugins-noise-cancellation~=0.2"
b. Enable in `room_options`:
Copy code
from livekit.plugins import noise_cancellation
     from livekit.agents.voice import room_io

     await session.start(
         room=ctx.room,
         agent=agent,
         room_options=room_io.RoomOptions(
             audio_input=room_io.AudioInputOptions(
                 noise_cancellation=noise_cancellation.BVC(),
             ),
         ),
     )
• Node.js a. Install:
pnpm add @livekit/noise-cancellation-node
b. Enable:
Copy code
import { BackgroundVoiceCancellation } from '@livekit/noise-cancellation-node';

     await session.start({
       room: ctx.room,
       agent: agent,
       inputOptions: {
         noiseCancellation: BackgroundVoiceCancellation(),
       },
     });
Notes: • Don’t enable frontend noise-cancellation (e.g., Krisp) at the same time—double processing can cause issues. • BVC runs inbound inside the agent (not on web/Swift/Android frontends). Would you like the exact config tailored to your current code (share your language and a short snippet of how you start the session)? Sources: Enhanced noise cancellation | LiveKit docs