Noise cancellation in Pipecat
Pipecat handles noise cancellation with audio input filters: a filter set on the transport processes the caller's audio before it reaches VAD and speech-to-text. Several filters are available, from commercial SDKs to a free spectral-gating option. This guide compares them and shows how to judge whether one is actually helping your agent.
How it's wired
You set the filter on the transport's parameters, alongside VAD:
from pipecat.audio.filters.krisp_filter import KrispFilter
from pipecat.transports.base_transport import TransportParams
params = TransportParams(
audio_in_enabled=True,
audio_in_filter=KrispFilter(), # swap for any filter below
# vad_analyzer=..., etc.
)
Every inbound audio chunk passes through the filter, so the VAD, the turn-taking logic and the STT service all receive cleaned audio. Module paths and parameters change between Pipecat releases; check the docs for your version.
Filters compared
| Filter | Engine | Background voices | Notes |
|---|---|---|---|
KrispFilter | Krisp SDK | Yes, with BVC models | Needs a Krisp SDK licence and model files |
AICFilter | ai-coustics | Check current models | Commercial; aimed at speech-recognition quality |
KoalaFilter | Picovoice Koala | No | Commercial on-device noise suppression; needs a Picovoice key |
NoisereduceFilter | noisereduce (spectral gating) | No | Free and simple; can add artifacts on non-stationary noise |
You can also write your own filter class to run an open-source model such as DeepFilterNet 3 or DTLN in-process. See Krisp alternatives for how those compare.
Telephony tips
- Mind the sample rate. Phone audio from Twilio, Exotel, Telnyx and similar media streams is typically 8 kHz μ-law. Many models expect 16 kHz or more, so check where resampling happens and test the model on audio that has actually been through a phone codec.
- Background voices cause most false interruptions on phone calls: a TV, family, a shop counter. A noise suppressor keeps them because they're speech. If that's your problem, you need background-voice cancellation.
- Tune VAD alongside the filter. Cleaner input changes how VAD behaves; re-check thresholds after adding a filter.
Measure the effect on your agent
Run 50–100 of your noisiest real calls (with consent) through each option and compare word error rate with your production STT, false interruptions, and added latency per frame. How clean the audio sounds is a weak proxy: a filter can sound great and still hurt transcription. More on this in why generic noise cancellation fails on Indian phone calls.
Probedeck for Pipecat (planned)
Probedeck is building a Pipecat filter for Indian telephony: background-voice and noise cancellation for 8 kHz calls, tuned on speech-recognition accuracy, running on CPU.
# planned API, subject to change
from probedeck.pipecat import ProbedeckFilter
params = TransportParams(audio_in_enabled=True, audio_in_filter=ProbedeckFilter(telephony=True))
Building voice agents on Pipecat?
Join the waitlist for early access to the filter and a free benchmark on your own calls.
Join the waitlist