Skip to main content

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

  1. Krisp Desktop SDK: Download Krisp's Desktop SDK and the model you wish to use from Krisp's desktop SDKs.
  2. Environment Configuration:
    • Copy the provided env_template file to a new file named .env.
    • In .env, set the paths to the downloaded Krisp SDK and model files.
  3. 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

Getting help

➡️ Join our Discord

➡️ Reach us on X

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipecat_ai_krisp-0.3.0.tar.gz (13.2 kB view details)

Uploaded Source

File details

Details for the file pipecat_ai_krisp-0.3.0.tar.gz.

File metadata

  • Download URL: pipecat_ai_krisp-0.3.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for pipecat_ai_krisp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 689242d8b1a334e7bd1556307f8037ba5cd944717914f35f361451576c9f54d9
MD5 3d6f8bfedd725d0b64873c29b06e3a83
BLAKE2b-256 1d03e9d3f8f941caf61d350747ac8ae945e1080fbce26dde5e68e03a3c940b2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page