echoing-lamp-18687
11/14/2025, 11:57 AMtall-airline-16756
11/14/2025, 11:57 AMtall-airline-16756
11/14/2025, 11:57 AMechoing-lamp-18687
11/14/2025, 11:58 AMtall-airline-16756
11/14/2025, 11:58 AMlivekit-plugins-noise-cancellation.
• It’s meant to be used in your agent-side code (like Python or Node.js), rather than at the frontend level.
• BVC is especially great because it helps remove background speakers along with noise, which really boosts speech-to-text accuracy in noisy settings.
Installation (Python):
pip install livekit-plugins-noise-cancellation
Usage Example (Python Agent):
from livekit.plugins import noise_cancellation
await session.start(
room_input_options=RoomInputOptions(
noise_cancellation=noise_cancellation.BVC(), # or NC() for standard noise cancellation
),
)
This plugin works smoothly with locally hosted LiveKit servers as long as you’re using LiveKit Agents in your application pipeline. If you have any questions or need a hand setting it up, just let me know—I’m here to help!
Sources: Enhanced noise cancellation | LiveKit docs | complex-agents/exa-deep-researcher/uv.lock | requirements.txtechoing-lamp-18687
11/14/2025, 12:01 PMtall-airline-16756
11/14/2025, 12:02 PMnpm install @livekit/krisp-noise-filter
• React Native: npm install @livekit/react-native-krisp-noise-filter
• Android: Add to `build.gradle`: implementation "io.livekit:krisp-noise-filter:0.0.10"
• Swift: Add the package dependency: .package(url: "https://github.com/livekit/swift-krisp-noise-filter.git", from: "0.0.7")
Then, initialize and apply the noise filter like this:
import { KrispNoiseFilter } from '@livekit/krisp-noise-filter';
const krisp = KrispNoiseFilter();
localAudioTrack.setProcessor(krisp);
For Swift, you can do:
let krispProcessor = LiveKitKrispNoiseFilter()
room.audioProcessingController.setCapturePostProcessing(krispProcessor)
Also, if you’re working with a browser, it’s good to check compatibility:
if (!isKrispNoiseFilterSupported()) {
console.warn('Krisp not supported in this browser');
}
2. Agent Setup (Inbound Audio):
• Start by installing the plugin:
• Python: pip install livekit-plugins-noise-cancellation
• Node.js: pnpm add @livekit/noise-cancellation-node
Then, you can use Background Voice Cancellation (BVC) or the standard noise cancellation (NC) in your agent code like this:
from livekit.plugins import noise_cancellation
await session.start(
room_input_options=RoomInputOptions(
noise_cancellation=noise_cancellation.BVC(), # or NC()
),
)
Important Notes to Keep in Mind:
• Try to avoid enabling Krisp noise cancellation on both frontend and agent for the same audio stream, as this might cause unwanted audio artifacts due to double processing.
• Also, BVC is only available within agent code (Python/Node.js) and not on the frontend.
If you have any questions or need a hand with any part of this, please don’t hesitate to ask—I’m here to help!
Sources: README.md | Enhanced noise cancellation | LiveKit docs | packages/react/src/hooks/cloud/krisp/useKrispNoiseFilter.ts | examples/voice_agents/langgraph_agent.py | Noise & echo cancellation | LiveKit docs