Overview
KrispVivaFilter is an audio processor that isolates the user’s voice in real-time audio streams using Krisp VIVA SDK. It inherits from BaseAudioFilter and processes audio frames to improve audio quality by filtering out background noise and other voices using Krisp’s voice isolation algorithms.
To use Krisp, you need a Krisp SDK license. Get started at Krisp.ai.
Installation
See the Krisp guide to learn how to install the Krisp VIVA SDK.Environment Variables
You need to provide the path to the Krisp model file (.kef extension). This can either be done by setting theKRISP_VIVA_MODEL_PATH environment variable or by setting the model_path in the constructor.
For SDK v1.6.1+, you also need to provide a Krisp API key via the api_key constructor parameter or the KRISP_VIVA_API_KEY environment variable.
Constructor Parameters
Path to the Krisp model file (.kef extension).You can set the
model_path directly. Alternatively, you can set the KRISP_VIVA_MODEL_PATH environment variable to the model file path.Voice isolation level for the filter
Krisp SDK API key for licensing (required for SDK v1.6.1+). If empty, falls back to the
KRISP_VIVA_API_KEY environment variable.Supported Sample Rates
The filter supports the following sample rates:- 8000 Hz
- 16000 Hz
- 24000 Hz
- 32000 Hz
- 44100 Hz
- 48000 Hz
Input Frames
Specific control frame to toggle filtering on/off