livekit-plugins-ai-coustics for Python, @livekit/plugins-ai-coustics for Node.js) provide real-time noise cancellation optimized for human-to-machine audio, improving transcription accuracy for your AI agents.
The plugins support two authentication modes:
- LiveKit Cloud - authenticate via
lk cloud auth, no ai-coustics SDK key needed. - ai-coustics SDK key - pass your license key directly, suitable for self-hosted environments.
Setup Guide
Follow these steps to create a new LiveKit agent project with ai-coustics speech enhancement. Use the tabs in each code block to switch between Python and Node.js.Create a LiveKit Cloud account
Sign up at LiveKit Cloud if you don’t already have an account.
A LiveKit Cloud account is required when using the default LiveKit Cloud authentication mode. Run
lk cloud auth once to authenticate. If you are running in a self-hosted environment, you can skip this step and pass an ai-coustics SDK key directly instead (see the self-hosted authentication step below).Install the LiveKit CLI
Install the LiveKit CLI tool for your platform.
Authenticate the CLI
Cloud only. This step links the CLI to your LiveKit Cloud account. If you are running in a self-hosted environment, skip this step.
Create a new agent project
Node.js only. LiveKit Agents for Node.js requires Node.js 20 or later. The starter project uses
pnpm.Enable speech enhancement
Open your agent entry file (
src/agent.py for Python, src/index.ts for Node.js) and add ai-coustics audio enhancement to your session.start() call:Node.js only. If your starter project already has an LLM configured in
AgentSession, keep it in place and only add the inputOptions.noiseCancellation block to session.start().Run the agent
Your agent is now running with ai-coustics Quail Voice Focus. For Python, you can start talking to it directly in the console. For Node.js, open the LiveKit Agent Console for your project, start a session, and speak to your agent. The Voice Focus models will elevate the foreground speaker while suppressing both interfering speech and background noise.
Voice Focus and Multi-Speaker Support
You can use Quail Voice Focus and Quail for multi-speaker scenarios in this integration. Support for Voice Activity Detection will be added in the future.
Self-hosted authentication (optional)
If you are not using LiveKit Cloud, pass your ai-coustics license key directly via the Your license key can be generated on the ai-coustics developer platform.
auth parameter:Available Models
The LiveKit plugins do not currently have support for loading model files. Instead, they have a limited selection of models embedded in the plugins themselves. The models currently available in the plugins are:- Quail L (16 kHz):
EnhancerModel.QUAIL_L(Python),EnhancerModel.QuailL(Node.js) - Quail Voice Focus 2.1 L (16 kHz):
EnhancerModel.QUAIL_VF_L(Python),EnhancerModel.QuailVfL(Node.js) - Quail Voice Focus 2.1 S (16 kHz):
EnhancerModel.QUAIL_VF_S(Python),EnhancerModel.QuailVfS(Node.js)
Next Steps
Plugin on PyPI
Discover the LiveKit Python plugin package.
Plugin on npm
Discover the LiveKit Node.js plugin package.
Quail & Voice Focus
Learn about Quail and Voice Focus models for LiveKit.
LiveKit Agents
Learn more about building voice agents with LiveKit.