A package for pipecat krisp functionality
Project description
Pipecat Krisp
This module provides a Python wrapper around Krisp's C++ SDK, enabling its integration with Pipecat. Krisp offers a Desktop SDK (in C++) that supports Linux, Windows, and macOS, allowing applications to leverage noise suppression capabilities.
Prerequisites
- Krisp Desktop SDK: Download Krisp's Desktop SDK and the model you wish to use from Krisp's desktop SDKs.
- Environment Configuration:
- Copy the provided
env_templatefile to a new file named.env. - In
.env, set the paths to the downloaded Krisp SDK and model files.
- Copy the provided
- CPython Module Dependencies
- In addition to above dependencies you will need the pybind11 library to build CPython modules using C++.
- On Ubuntu Linux:
sudo apt-get install pybind11-dev - On Mac:
brew install pybind11
Environment Template
Below is the format for the .env file. Replace the placeholders with the actual paths where the Krisp SDK and model are located:
KRISP_SDK_PATH=/PATH/TO/KRISP/SDK
KRISP_MODEL_PATH=/PATH/TO/KRISP/MODEL
Installation and Setup
Follow these steps to set up and build the Pipecat Krisp Module:
- Set up a Virtual Environment:
python3 -m venv venv
source venv/bin/activate
- Install Dependencies:
pip install -r requirements.txt
- Build and Install the Local Python wrapper Library:
pip install --editable .
Running the Example
- Install Dependencies:
pip install -r example/requirements.txt
After setup, you can run an example script to test the Krisp integration:
./scripts/run_example.sh
An output folder will be created, containing the processed file with noise suppression applied by Krisp.
Publishing
- Prepare to dist:
./scripts/prepare_dist.sh
- Test the build using TestPyPI with Twine:
Upload to TestPyPI using twine
twine upload --repository testpypi dist/*
Test using pip to download packages from TestPyPI instead of PyPI
pip install --index-url https://test.pypi.org/simple/ pipecat-ai-krisp
Once you are happy, publish it to production.
twine upload dist/*
Use twine upload dist/* to upload your package and enter your credentials for the account you registered on the real PyPI. In this case you don’t need to specify --repository.
References
- Krisp getting started: https://sdk-docs.krisp.ai/docs/getting-started-js
- Krisp Sample Apps: https://github.com/krispai/Krisp-SDK-Sample-Apps/tree/krisp-sdk-v9
- Python packaging guide: https://packaging.python.org/en/latest/guides/using-testpypi/
Getting help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pipecat_ai_krisp-0.2.0.tar.gz.
File metadata
- Download URL: pipecat_ai_krisp-0.2.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed0b1f807278e93788cb446106ade6508b051747d79db1d1311257015135cb60
|
|
| MD5 |
6f55b1a165ee379a4824f83706a7b73c
|
|
| BLAKE2b-256 |
91c511005e0d7d3bfe58dce9e365a57faa315a5aa8a6f1cc0a04ca69deb477ca
|