---
title: "LiveKit noise cancellation: what it is and how it works"
date: "2026-06-10"
authors: "Darryn Campbell"
tags: "guide"
---

# LiveKit noise cancellation: what it is and how it works

Real microphones don't capture clean speech. They pick up fans, music, a TV in the next room, a colleague talking three feet away, and the echo of your own voice bouncing back through your speakers. For a voice AI agent, that background noise and competing speech degrade transcription quality and interfere with turn detection, so the agent mishears words, talks over the user, or responds to speech that was never directed at it.

This post explains what [noise cancellation (NC)](https://docs.livekit.io/transport/media/noise-cancellation/) means in LiveKit, where you can apply it (the agent, the client, and the SIP trunk), and how it differs from related concepts such as echo cancellation.

## Noise cancellation best practices (TL;DR)

- **For voice AI**, apply noise cancellation [within your agent](#noise-cancellation-agent-s) only.
- **For livestreaming**, apply it [within the client](#noise-cancellation-client-s).
- **For telephony without voice AI**, apply it [on the SIP trunk](#noise-cancellation-sip-s).
- **For a single primary speaker**, use a [voice isolation](#background-vs-voice-isolation-s) model.
- **For multiple speakers** (or if a voice isolation model causes problems), use a model that [suppresses all background noise](#background-vs-voice-isolation-s).

<span id="where-to-apply-s" />

## Where to apply noise cancellation

Before choosing a specific model or setting, it helps to know *where* in the audio path the processing runs. LiveKit gives you three options, each applying to a different part of the pipeline.

- **In the agent:** Server-side processing of *inbound* audio, with access to LiveKit Cloud's enhanced models. This is the recommended default for most voice AI solutions.
- **In the client (frontend):** Web, mobile, or desktop SDKs process audio from the user's microphone before it's sent to the LiveKit room. LiveKit supports both Krisp models and WebRTC [noiseSuppression](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings/noiseSuppression) on the frontend.
- **At the SIP trunk:** For telephony, Krisp cancellation is applied directly at the trunk for inbound or outbound calls.

<Mermaid
  chart={`flowchart LR
  subgraph Client["Client SDK"]
      mic[Microphone] --> cnc["Frontend NC<br/>(Krisp / WebRTC)"]
  end

  subgraph Phone["Telephony"]
      caller[Phone caller] --> trunk["SIP trunk<br/>(Krisp NC)"]
  end

  cnc --> room((LiveKit Room))
  trunk --> room

  room --> anc["Agent NC<br/>(Krisp / ai-coustics)"]
  anc --> stt[STT / turn detection / LLM]

  classDef nc fill:#1FD5F9,stroke:#00BFFF,color:#1a1a1a;
  class cnc,trunk,anc nc;
`}
/>

<span id="stacking-models-s" />

### Stacking models

LiveKit refers to both Krisp and ai-coustics as "enhanced" noise cancellation, and it's important not to *stack* enhanced models on the same audio. These models are trained on *raw* audio, so feeding them input that another model has already processed can produce unexpected results.

In practice: **if you cancel noise in the agent, don't also enable Krisp on the frontend or your SIP trunk**.

The exception is standard WebRTC noise suppression (not to be confused with background noise suppression) and the separate echo cancellation feature; both can be left enabled alongside an enhanced model.

<span id="background-vs-voice-isolation-s" />

## Background noise suppression vs. voice isolation

LiveKit's enhanced noise cancellation comes in two flavors that solve different problems and are priced differently.

**Background noise suppression** removes *non-speech* noise such as traffic, fans, or music while preserving all speech. Use it when the main challenge is environmental noise, or when there are multiple legitimate speakers you want to keep (for example, diarization).

**Voice isolation** goes further: it emphasizes the *primary* speaker and suppresses competing speech as well as background noise. Use it for single-speaker scenarios, such as call centers, where cross-talk from nearby people could confuse transcription or turn detection.

LiveKit supports two providers across both categories: **Krisp** and **ai-coustics**.

|                     | Background noise suppression                     | Voice isolation                                                             |
| ------------------- | ------------------------------------------------ | --------------------------------------------------------------------------- |
| **What it removes** | Non-speech noise; keeps all speech               | Competing voices *and* noise; keeps only the primary speaker                |
| **Best for**        | Environmental noise; multi-speaker / diarization | Single speaker; cross-talk environments                                     |
| **Models**          | Krisp NC, ai-coustics QUAIL\_L                   | Krisp VIVA, Krisp VIVA (telephony), ai-coustics QUAIL\_VF\_S / QUAIL\_VF\_L |
| **Cost**            | Included with LiveKit Cloud, no surcharge        | Billed separately (metered)                                                 |

For more on these models, including word error rates (WER), see the [noise cancellation documentation](https://docs.livekit.io/transport/media/noise-cancellation/#agents).

<span id="nc-vs-echo-cancellation-s" />

## Noise cancellation vs. echo cancellation (and related concepts)

These terms are used interchangeably in casual conversation, but in LiveKit they're distinct features.

**Echo cancellation** removes your *own* speaker output looping back into your microphone, and is the reason you don't hear yourself a half-second late during a voice call. It's a separate feature from noise cancellation and can be left enabled alongside it. In the LiveKit SDKs, it's the WebRTC [`echoCancellation`](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings/echoCancellation) setting at the client.

**WebRTC noise suppression** removes unwanted sound. Specifically, this is the WebRTC built-in [`noiseSuppression`](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings/noiseSuppression), which offers lightweight, client-side processing. This contrasts with the "enhanced" noise cancellation offered by the Krisp or ai-coustics models. If you aren't using an enhanced model, LiveKit strongly recommends leaving WebRTC noise suppression on.

**VAD (voice activity detection)** is a related but separate concept: it detects *whether* someone is speaking (to drive turn detection) rather than cleaning the audio. Cleaner input produces better VAD and turn-detection signals, because cancellation runs *before* VAD and STT in the pipeline. The ai-coustics plugin also ships a built-in VAD adapter, so you can skip running a separate VAD like Silero ([more info](https://docs.livekit.io/transport/media/noise-cancellation/#vad-adapter)).

<span id="noise-cancellation-agent-s" />

## Noise cancellation within the agent

Agent-side cancellation is the recommended approach for most voice AI use cases, and you can choose between Krisp and ai-coustics.

Install the package for your chosen provider by following the [instructions in the documentation](https://docs.livekit.io/transport/media/noise-cancellation/#agents-installation).

Then add the filter to your room input options when starting the session, specifying the desired model.

```python
# Python
from livekit.agents import room_io
from livekit.plugins import ai_coustics  # or krisp (voice isolation) / noise_cancellation (NC)

await session.start(
    room_options=room_io.RoomOptions(
        audio_input=room_io.AudioInputOptions(
            # Voice isolation (metered):
            noise_cancellation=ai_coustics.audio_enhancement(
                model=ai_coustics.EnhancerModel.QUAIL_VF_S
            ),
            # or krisp.voice_isolation()
            # background noise suppression (no surcharge):
            # ai_coustics.audio_enhancement(model=ai_coustics.EnhancerModel.QUAIL_L)
            # or noise_cancellation.NC()
        ),
    ),
)
```

```typescript
// Node.js
import * as aiCoustics from '@livekit/plugins-ai-coustics';
// or krisp from '@livekit/agents-plugin-krisp'

await session.start({
  inputOptions: {
    // Voice isolation (metered):
    noiseCancellation: aiCoustics.audioEnhancement({ model: 'quailVfS' }),
    // or krisp.voiceIsolation() from '@livekit/agents-plugin-krisp'
    // Background suppression (no surcharge):
    // aiCoustics.audioEnhancement({ model: 'quailL' })
    // or NoiseCancellation() from '@livekit/noise-cancellation-node'
  },
});
```

Krisp VIVA accepts a [noise suppression level](https://docs.livekit.io/transport/media/noise-cancellation/#noise-suppression-level) from `0` (minimal processing) to `100` (maximum suppression). You can change it while the session is running, so you can turn suppression up when background noise increases and back down when it settles:

```python
# Python
processor = krisp.voice_isolation(noise_suppression_level=75)
# ...later, in response to the conversation:
processor.noise_suppression_level = 100
```

```typescript
// Node.js
const noiseCancellation = krisp.voiceIsolation({ noiseSuppressionLevel: 75 });
// ...later, in response to the conversation:
noiseCancellation.setNoiseSuppressionLevel(100);
```

You can find additional configuration options, such as the ai-coustics enhancement level, in the [docs](https://docs.livekit.io/transport/media/noise-cancellation/#additional-options).

<span id="self-hosted-agents-s" />

### Enhanced noise cancellation support for self-hosted agents

Provided you use LiveKit Cloud for your media transport, you can use any of the Krisp or ai-coustics models, whether you host your agents on LiveKit Cloud or self-host them. Billable models are charged at the same pricing tiers regardless of how you host your agents, as detailed in the [pricing section](#pricing-s) later in this post.

Be aware that enhanced cancellation is **CPU- and memory-intensive**. If you self-host your agents, expect higher CPU and memory requirements than for agents that don't use it.

If you [self-host LiveKit server](https://docs.livekit.io/transport/self-hosting/), you are more limited in your model choice, though you can run ai-coustics by providing your own key, as detailed in the [docs](https://docs.livekit.io/transport/media/noise-cancellation/#self-hosted-auth).

<span id="noise-cancellation-client-s" />

## Noise cancellation in the client / frontend (web and mobile)

Client-side cancellation cleans up the **microphone input** on the user's own device before that audio is encoded and sent into the room. The [docs](https://docs.livekit.io/transport/media/noise-cancellation/#frontend) refer to this as "outbound" audio, as in "outbound from the device into the LiveKit room".

When should you cancel in the client rather than the agent? Client-side makes sense for conferencing and livestreaming apps where the audio goes to other humans rather than an agent. For voice AI, apply noise cancellation within your agent, and avoid using two enhanced models on the same audio pathway, as [explained earlier](#stacking-models-s).

Two distinct types of noise cancellation can be applied in the frontend:

### The Krisp frontend filter

The Krisp frontend filter applies enhanced cancellation directly in the SDK. Platform support varies: notably, the BVC model (which offers voice isolation) is only available in the JavaScript/web SDK, while the other client SDKs support the standard Krisp NC model. For the full breakdown of which SDKs support which models, see the [table](https://docs.livekit.io/transport/media/noise-cancellation/#frontend-krisp) in the docs.

At the time of writing, the client SDKs use Krisp's BVC model for voice isolation, not VIVA. VIVA is agent-side only, so don't expect the frontend filter and your agent filter to behave identically.

On the web, the React components package exposes a `useKrispNoiseFilter` hook, or you can use the `KrispNoiseFilter` class directly, as shown below:

```typescript
// Web (base JS SDK)
const { KrispNoiseFilter } = await import('@livekit/krisp-noise-filter');
const krispProcessor = KrispNoiseFilter();
await trackPublication.track.setProcessor(krispProcessor);
await krispProcessor.setEnabled(true);
```

Note that not all browsers support Krisp, so be sure to check with `isKrispNoiseFilterSupported()`.

The mobile and desktop SDKs follow the same pattern: instantiate the Krisp processor and attach it as the capture post-processor. All these examples use the standard Krisp NC model, which offers noise cancellation but not voice isolation:

```swift
// Swift
import LiveKit
import SwiftUI
import LiveKitKrispNoiseFilter

// Keep this as a global variable or somewhere that won't be deallocated
let krispProcessor = LiveKitKrispNoiseFilter()

struct ContentView: View {
    @StateObject private var room = Room()

    var body: some View {
        MyOtherView()
        .environmentObject(room)
        .onAppear {
            // Attach the processor
            AudioManager.shared.capturePostProcessingDelegate = krispProcessor
            // This must be done before calling `room.connect()`
            room.add(delegate: krispProcessor)

            // You are now ready to connect to the room from this view or any child view
        }
    }
}
```

```kotlin
// Android (Kotlin)
val krisp = KrispAudioProcessor.getInstance(getApplication())
coroutineScope.launch(Dispatchers.IO) { krisp.init() } // once, off the main thread

val room = LiveKit.create(
    getApplication(),
    overrides = LiveKitOverrides(
        audioOptions = AudioOptions(
            audioProcessorOptions = AudioProcessorOptions(capturePostProcessor = krisp),
        ),
    ),
)
// Or after creation: room.audioProcessingController.setCapturePostProcessing(krisp)
```

You can find examples for additional languages in the [docs](https://docs.livekit.io/transport/media/noise-cancellation/#frontend-krisp).

### WebRTC noise and echo cancellation

WebRTC [noise suppression](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings/noiseSuppression) and [echo cancellation](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings/echoCancellation) are the built-in, browser-level features, enabled by passing the corresponding properties in the `AudioCaptureOptions` object at connection time (see [JavaScript](https://docs.livekit.io/reference/client-sdk-js/interfaces/AudioCaptureOptions.html), [Swift](https://docs.livekit.io/reference/client-sdk-swift/documentation/livekit/audiocaptureoptions/), [Flutter](https://pub.dev/documentation/livekit_client/latest/livekit_client/AudioCaptureOptions-class.html)). If you are *not* using an enhanced model at any stage of your audio pipeline, LiveKit strongly recommends enabling these.

<span id="noise-cancellation-sip-s" />

## Noise cancellation for SIP (trunk-based telephony)

Phone calls have no browser frontend to run a filter in, so LiveKit lets you apply Krisp cancellation directly at the SIP trunk for both inbound and outbound calls. This uses the standard Krisp NC model at the trunk level; the other models are not available for SIP.

It helps to picture where the trunk sits. The trunk is the bridge between your SIP provider (Twilio, Telnyx, etc.) and the LiveKit room; trunk-level noise cancellation cleans the phone-network audio *as it crosses that bridge*, before it ever reaches the room or your agent:

<Mermaid
  chart={`flowchart LR
  caller[📞 Caller] <--> provider[SIP provider<br/>Twilio / Telnyx]
  provider <--> trunk

  subgraph LK["LiveKit"]
      trunk["SIP trunk<br/>(krisp_enabled → Krisp NC)"]
      trunk --> room((Room))
      room --> agent["Agent"]
  end

  classDef nc fill:#1FD5F9,stroke:#00BFFF,color:#1a1a1a;
  class trunk nc;
`}
/>

For **inbound** calls, set `krisp_enabled: true` (or `krispEnabled` in JSON / most SDKs) in the inbound trunk configuration.

```json
{
  "trunk": {
    "name": "My trunk",
    "numbers": ["+15105550100"],
    "krispEnabled": true
  }
}
```

For **outbound** calls, set `krisp_enabled: true` in the [`CreateSIPParticipant`](https://docs.livekit.io/reference/telephony/sip-api/#createsipparticipant) request.

```python
# Python
request = CreateSIPParticipantRequest(
    sip_trunk_id="<trunk_id>",
    sip_call_to="<phone_number>",
    room_name="my-sip-room",
    participant_identity="sip-participant",
    krisp_enabled=True,
)
```

```typescript
// Node.js
const participant = await sipClient.createSipParticipant(
  trunkId,
  phoneNumber,
  'my-sip-room',
  {
    participantIdentity: 'sip-participant',
    krispEnabled: true
  },
);
```

<span id="sip-with-agents-s" />

### Combining SIP participants with agents

Where your SIP caller dials into a room with an agent, you risk applying noise cancellation in two places: on the SIP trunk and within the agent (as described previously). In this case, **don't enable noise cancellation at both the trunk level and within the agent**; LiveKit recommends enabling it **only** on your agent. You have a couple of options:

- **Krisp VIVA (telephony)** is Krisp's voice isolation model, tuned specifically for the narrow, compressed audio band of phone calls. You can use [Selectors](https://docs.livekit.io/transport/media/noise-cancellation/#selectors) to set the noise cancellation model dynamically based on participant type.
- **ai-coustics models** can also process phone audio.

```python
# Python — telephony-tuned Krisp voice isolation
noise_cancellation=krisp.voice_isolation_telephony()
# or an ai-coustics model, e.g.:
# noise_cancellation=ai_coustics.audio_enhancement(model=ai_coustics.EnhancerModel.QUAIL_VF_S)
```

```typescript
// Node.js
noiseCancellation: krisp.voiceIsolationTelephony()
// or aiCoustics.audioEnhancement({ model: 'quailVfS' })
```

If your room mixes SIP and WebRTC participants, a selector picks the right variant per participant:

```python
# Python
noise_cancellation=lambda params: (
    krisp.voice_isolation_telephony()
    if params.participant.kind == rtc.ParticipantKind.PARTICIPANT_KIND_SIP
    else krisp.voice_isolation()
)
```

<span id="pricing-s" />

## Pricing

As [explained earlier](#background-vs-voice-isolation-s), background noise suppression and voice isolation are two separate concepts: background noise suppression removes all non-speech noise, while voice isolation isolates a primary speaker. LiveKit prices these two forms of noise cancellation separately on its pricing page:

| Noise cancellation                             | Description                                                                                                          | Pricing page                                                                           | Cost                            |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------- |
| Voice isolation at the agent level             | Models that isolate the primary speaker: Krisp VIVA, Krisp VIVA (telephony), ai-coustics QUAIL\_VF\_S / QUAIL\_VF\_L | [Voice isolation](https://livekit.com/pricing#speaker-isolation)                       | Free allowance, then metered \* |
| Noise suppression at the agent level           | Models that remove all background noise: Krisp NC, ai-coustics QUAIL\_L                                              | [Background noise suppression](https://livekit.com/pricing#audio-enhancement)          | Included with LiveKit Cloud †   |
| Noise suppression at the frontend or SIP trunk | Krisp NC and BVC models, where supported (as described earlier)                                                      | [Enhanced noise cancellation](https://livekit.com/pricing#enhanced-noise-cancellation) | Included with LiveKit Cloud †   |

\* All tiers, including the free tier, receive an allowance, but metered use over that allowance only applies to paid plans.

† Includes agents hosted in LiveKit Cloud and self-hosted agents. Does not include [self-hosted LiveKit deployments](https://docs.livekit.io/deploy/custom/deployments/). If you self-host your SFU, the ai-coustics plugin can authenticate directly against ai-coustics with your own license key. See [the docs](https://docs.livekit.io/transport/media/noise-cancellation/#self-hosted-auth) for more information.

<span id="troubleshooting-s" />

## Troubleshooting steps

| Issue                                                                                                                                                                                                                                | Resolution                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Agent transcribes background chatter as words                                                                                                                                                                                        | Apply [Background noise suppression](#background-vs-voice-isolation-s) in your agent.                                                                                                                                                                                                                                           |
| Nearby people's speech confuses the agent                                                                                                                                                                                            | Make sure your noise suppression is using a [Voice isolation](#background-vs-voice-isolation-s) model.                                                                                                                                                                                                                          |
| User hears themselves echoed back                                                                                                                                                                                                    | Apply [Echo cancellation (WebRTC)](#nc-vs-echo-cancellation-s) in the client.                                                                                                                                                                                                                                                   |
| Turn detection misfires in noisy rooms                                                                                                                                                                                               | Apply either [Voice isolation](#background-vs-voice-isolation-s) for a single speaker use case, or [background suppression](#background-vs-voice-isolation-s) if you have multiple speakers.                                                                                                                                    |
| SIP audio quality is bad                                                                                                                                                                                                             | Make sure you have noise cancellation enabled. The [docs](https://docs.livekit.io/reference/telephony/troubleshooting/#bad-audio-quality) also list several other troubleshooting steps not related to noise cancellation.                                                                                                      |
| Audio works fine with a headset, but using a laptop microphone causes the voice to be very faint                                                                                                                                     | Models designed for a primary speaker work best in close-microphone scenarios, like headsets. Do not use a voice isolation model in this scenario.                                                                                                                                                                              |
| Call audio goes very quiet after an answering machine or IVR                                                                                                                                                                         | Models designed for a primary speaker will not switch speaker during the conversation. What has likely happened is that the model detected the user's speech as secondary, having first detected the answering machine or IVR. Do not use a voice isolation model in this scenario.                                             |
| Audio quality is poor when viewing the call in [Agent Insights](https://docs.livekit.io/testing/observability/insights/), but quality is fine in the [Egress](https://docs.livekit.io/transport/media/ingress-egress/egress/) output | Any noise cancellation applied at the agent level shows up in the Agent Insights traces but is absent from Egress; this indicates a misconfiguration of your agent noise cancellation.                                                                                                                                          |
| Agent is not transcribing audio                                                                                                                                                                                                      | The agent noise cancellation may be misconfigured or too aggressive. Try switching to a different model, specifically one that does not support voice isolation. With Krisp VIVA, you can also try lowering the [noise suppression level](https://docs.livekit.io/transport/media/noise-cancellation/#noise-suppression-level). |
| STT transcriptions are inaccurate                                                                                                                                                                                                    | Some speech-to-text (STT) models are trained on audio that includes background noise, performing better without noise cancellation applied. Try disabling noise cancellation in your agent to see if your overall experience improves.                                                                                          |

**Working with LiveKit support?**

Remember that the support team does not have access to your Agent Insights data, including recordings, unless you [share the specific sessions with them](https://docs.livekit.io/testing/observability/insights/#share-session-link).