Noise cancellation in LiveKit Agents
In a LiveKit voice agent, noise cancellation runs on the caller's audio before it reaches voice-activity detection, turn detection and speech-to-text. Get it right and your agent stops being interrupted by traffic, TVs and other people talking. Get it wrong and you can make transcription worse. This guide covers how it's wired in LiveKit Agents, which option to use for phone calls, and how to measure whether it's helping.
Where noise cancellation plugs in
In LiveKit Agents (Python, 1.x), you pass a noise-cancellation plugin in the room's audio-input options when starting the session:
from livekit.agents import room_io
from livekit.plugins import noise_cancellation
await session.start(
agent=my_agent,
room=ctx.room,
room_options=room_io.RoomOptions(
audio_input=room_io.AudioInputOptions(
noise_cancellation=noise_cancellation.BVC(),
),
),
)
The filter processes every incoming audio frame, so everything downstream (VAD, the turn detector and STT) sees the cleaned signal. Option names have changed between LiveKit Agents versions, so check the docs for the version you run.
Which model to choose
| Plugin | What it does | Use for |
|---|---|---|
NC() | Removes background noise | Quiet environments with steady noise |
BVC() | Removes noise and other people's voices | Web and app calls |
BVCTelephony() | BVC tuned for narrowband phone audio | SIP / PSTN calls |
A common pattern is to pick the model per call: BVCTelephony() when the participant joined over SIP, BVC() otherwise. Phone audio is 8 kHz and codec-compressed, and a model tuned for it behaves differently from one trained on wideband audio.
Self-hosting note: LiveKit's enhanced noise-cancellation plugins are built on Krisp models and, at the time of writing, LiveKit's documentation lists them as a LiveKit Cloud feature. If you self-host LiveKit server, plan for an alternative: a separately licensed Krisp SDK, or an open-source model wrapped as a plugin.
Self-hosted options
- Licensed Krisp SDK: the same model family, run in your own agent process under a direct licence.
- Open-source models (DeepFilterNet 3, DTLN, RNNoise): free and run on CPU, but they suppress noise, not other voices. Wrap one as an audio-frame processor in front of your STT. See our comparison of Krisp alternatives.
- No filter, tuned VAD: a stricter VAD threshold or STT endpointing can reduce false interruptions without any denoiser. It's a cheap first experiment.
Measure it, don't trust it
Noise cancellation is tuned to make audio sound clean to people. Your agent isn't a person. Before rolling a filter out, measure:
- Word error rate (WER): transcribe the same noisy calls with and without the filter, using your production STT.
- False interruptions: how often the agent stops talking because of noise or a background voice.
- End-of-turn delay: aggressive filtering can clip word endings and change when the turn detector fires.
- Added latency and CPU: per audio frame and per concurrent call.
Use real calls from your own traffic. Synthetic noise rarely matches what your callers actually have around them; see why this matters especially on Indian phone calls.
Probedeck for LiveKit (planned)
Probedeck is building a LiveKit plugin focused on Indian telephony: background-voice and noise cancellation for 8 kHz calls, tuned on speech-recognition accuracy, running on CPU, and usable with a self-hosted LiveKit server. The planned interface is a drop-in replacement:
# planned API, subject to change
from probedeck.livekit import BVC
audio_input=room_io.AudioInputOptions(noise_cancellation=BVC(telephony=True))
Building voice agents on LiveKit?
Join the waitlist for early access to the plugin and a free benchmark on your own calls.
Join the waitlist