Skip to main content
Integrate ai-coustics speech enhancement into your LiveKit voice agents in minutes. The livekit-plugins-ai-coustics package provides real-time noise cancellation optimized for human-to-machine audio, improving transcription accuracy for your AI agents.
This guide refers to a yet-to-launch LiveKit integration. If you would like to be part of Early Access and receive support plus marketing highlights when we launch, please contact us.

Already running a LiveKit Agent?

Here’s the quick integration:
# Install the plugin
uv add livekit-plugins-ai-coustics
from livekit.plugins import ai_coustics

# Add to your session start
await session.start(
    agent=Assistant(),
    room=ctx.room,
    room_options=room_io.RoomOptions(
        audio_input=room_io.AudioInputOptions(
          # - EnhancerModel.QUAIL_VF_L  (best with a single foreground speaker)
          # - EnhancerModel.QUAIL_L     (best for multiple speakers)
          noise_cancellation=ai_coustics.audio_enhancement(
              model=ai_coustics.EnhancerModel.QUAIL_VF_L
          ),
        )
    ),
)
No SDK key is required. The plugin handles authentication automatically through LiveKit.

Full Setup Guide

Follow these steps to create a new LiveKit agent project with ai-coustics speech enhancement.
1

Create a LiveKit Cloud account

Sign up at LiveKit Cloud if you don’t already have an account.
2

Install the LiveKit CLI

Install the LiveKit CLI tool for your platform.
3

Authenticate the CLI

lk cloud auth
4

Create a new agent project

lk app create --template agent-starter-python my-agent
cd my-agent
5

Add the ai-coustics plugin

uv add livekit-plugins-ai-coustics
6

Install dependencies

uv sync
7

Download model files

uv run src/agent.py download-files
8

Enable speech enhancement

Open src/agent.py and update the session.start() call to include audio enhancement:
from livekit.plugins import ai_coustics

await session.start(
    agent=Assistant(),
    room=ctx.room,
    room_options=room_io.RoomOptions(
        audio_input=room_io.AudioInputOptions(
            # - EnhancerModel.QUAIL_VF_L  (best with a single foreground speaker)
            # - EnhancerModel.QUAIL_L     (best for multiple speakers)
            noise_cancellation=ai_coustics.audio_enhancement(
                model=ai_coustics.EnhancerModel.QUAIL_VF_L
            ),
        )
    ),
)
9

Run the agent

uv run python src/agent.py console
Your agent is now running with ai-coustics Quail Voice Focus. You can start talking to it directly in the console. The Voice Focus models will elevate the foreground speaker while suppressing both interfering speech and background noise.
10

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.

Next Steps