i've livekit server hosted locally, i saw noise ca...
# ask-ai
e
i've livekit server hosted locally, i saw noise cancellation is not available, per my checking livekit cloud is using paid from krisp, can i also use it through any plugin
t
Thanks for reaching out, Aman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! I wanted to share that Krisp noise cancellation is currently available only on LiveKit Cloud and isn’t supported on locally hosted LiveKit servers. This feature is built into the LiveKit Cloud infrastructure, so it’s not available for self-hosted setups. If Krisp noise cancellation is important for your use case, you might consider switching to LiveKit Cloud. Alternatively, you could explore integrating Krisp’s standalone SDK directly into your application, outside of LiveKit’s plugin system. I’m here if you want to discuss these options further or need any help along the way! Sources: krisp-minimal/README.md | Enhanced noise cancellation | LiveKit docs | packages/react/src/hooks/cloud/krisp/useKrispNoiseFilter.ts | README.md
e
are there any existing noise cancellation plugin that i can plug
t
For locally hosted LiveKit servers, you can happily make use of the livekit-plugins-noise-cancellation plugin. This handy plugin supports both Background Voice Cancellation (BVC) and standard noise cancellation (NC) models to help process inbound audio within LiveKit Agents. Key Details: • The plugin is available on PyPI as
livekit-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):
Copy code
pip install livekit-plugins-noise-cancellation
Usage Example (Python Agent):
Copy code
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.txt
e
and how to setup the one from krisp
t
Hi there! To help you set up Krisp noise cancellation in LiveKit Cloud, you can choose to integrate it either on the frontend (for outbound audio) or within LiveKit Agents (for inbound audio). I’ve outlined the steps for both below to make things easier for you: 1. Frontend Setup (Outbound Audio): • First, install the relevant package depending on your platform: • JavaScript/React:
npm 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:
Copy code
import { KrispNoiseFilter } from '@livekit/krisp-noise-filter';

const krisp = KrispNoiseFilter();
localAudioTrack.setProcessor(krisp);
For Swift, you can do:
Copy code
let krispProcessor = LiveKitKrispNoiseFilter()
room.audioProcessingController.setCapturePostProcessing(krispProcessor)
Also, if you’re working with a browser, it’s good to check compatibility:
Copy code
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:
Copy code
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