> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroruntime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rnnoise

> Python API reference for the rnnoise noise cancellation plugin.

<Card title="Usage guide" icon="book" href="/plugins/denoise/rnnoise" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## RNNoise

Noise suppression integration backed by the RNNoise model.

Provides RNNoise-based audio denoising through the common
`~zrt.agents.denoise.Denoise` interface.

### Constructor

```python theme={null}
RNNoise(**kwargs)
```

### aicoustics

```python theme={null}
def aicoustics(*, model_id: 'str' = 'rook-l-48khz', sample_rate: 'int' = 48000, chunk_ms: 'int' = 10, gateway_token: 'Optional[str]' = None, base_url: 'Optional[str]' = None) -> "'Denoise'"
```

Create a denoiser configured for the ai-coustics provider.

<ParamField path="model_id" type="str" default="rook-l-48khz">
  Identifier of the ai-coustics model to use.
</ParamField>

<ParamField path="sample_rate" type="int" default="48000">
  Sample rate, in hertz, expected by the model.
</ParamField>

<ParamField path="chunk_ms" type="int" default="10">
  Audio chunk size in milliseconds.
</ParamField>

<ParamField path="gateway_token" type="Optional[str]">
  Authentication token for the denoising gateway. Falls back to the `ZRT_AUTH_TOKEN` environment variable when not provided.
</ParamField>

<ParamField path="base_url" type="Optional[str]">
  Base URL of the denoising service.
</ParamField>

<ResponseField name="returns" type="'Denoise'">
  A `Denoise` instance using the `aicoustics` provider.
</ResponseField>

### rnnoise

```python theme={null}
def rnnoise() -> "'Denoise'"
```

Create a denoiser configured for the RNNoise provider.

<ResponseField name="returns" type="'Denoise'">
  A `Denoise` instance using the `rnnoise` provider.
</ResponseField>

### sanas

```python theme={null}
def sanas(*, model_id: 'str' = 'VI_G_NC3.0', sample_rate: 'int' = 16000, chunk_ms: 'int' = 20, gateway_token: 'Optional[str]' = None, base_url: 'Optional[str]' = None) -> "'Denoise'"
```

Create a denoiser configured for the Sanas provider.

<ParamField path="model_id" type="str" default="VI_G_NC3.0">
  Identifier of the Sanas model to use.
</ParamField>

<ParamField path="sample_rate" type="int" default="16000">
  Sample rate, in hertz, expected by the model.
</ParamField>

<ParamField path="chunk_ms" type="int" default="20">
  Audio chunk size in milliseconds.
</ParamField>

<ParamField path="gateway_token" type="Optional[str]">
  Authentication token for the denoising gateway. Falls back to the `ZRT_AUTH_TOKEN` environment variable when not provided.
</ParamField>

<ParamField path="base_url" type="Optional[str]">
  Base URL of the denoising service.
</ParamField>

<ResponseField name="returns" type="'Denoise'">
  A `Denoise` instance using the `sanas` provider.
</ResponseField>
