Krisp VIVA Filter
KrispVivaFilter is a Patter AudioFilter backed by the Krisp VIVA noise- and echo-suppression SDK. It runs as a pre-STT filter in pipeline mode: caller PCM enters the filter, cleaned PCM exits and is forwarded to the STT provider.
Use it on noisy lines (call-centre, vehicle, café) where STT accuracy degrades because of background sound.
TypeScript twin not yet shipped. At time of writing the Patter TypeScript SDK does not include a Krisp filter — only the Python SDK does. Use
DeepFilterNetFilter for noise suppression in TypeScript pipelines, or call the Python SDK out-of-process if you need Krisp specifically. Track parity in the project repo.Install (Python only, today)
The Krisp SDK ships outside PyPI’s normal channels and requires a licence file:Constructor (Python)
RuntimeErrorifkrisp-audiois not installed or the licence key is missing.ValueErrorifmodel_pathis missing orframe_duration_msis unsupported.FileNotFoundErrorif the.kefmodel file does not exist.
Usage in a pipeline agent (Python)
Plug it intophone.agent(audio_filter=...):
TypeScript pipeline today
Until the Krisp twin lands in the TS SDK, route noise suppression throughDeepFilterNetFilter:
audioFilter parameter on Agents (pipeline mode only).
When to use Krisp vs alternatives
Notes (Python)
- The Krisp SDK is reference-counted: multiple filter instances share one global init/destroy lifecycle, so you can hold one
KrispVivaFilterper call without re-initialising the SDK each time. - The filter expects the exact frame size:
sample_rate * frame_duration_ms / 1000int16 samples perprocess()call. Patter’s pipeline-mode audio bus already aligns to this. - On any internal error the filter logs the failure and returns the original PCM unchanged so the call audio path is never broken — the VAD downstream will still receive audio even if Krisp temporarily fails.
enable()/disable()toggle filtering at runtime (e.g. for A/B testing on a single call).
What’s Next
Agents
The
audioFilter parameter on phone.agent({...}).DeepFilterNet
OSS noise suppression alternative — available in TS today.
Silero VAD
Voice activity detection downstream of the filter.
Pipeline mode
STT + LLM + TTS composition.

