Skip to main content

Usage guide

Setup, environment variables, and Python/JavaScript/Go usage examples.

RNNoise

Noise suppression integration backed by the RNNoise model. Provides RNNoise-based audio denoising through the common ~zrt.agents.denoise.Denoise interface.

Constructor

aicoustics

Create a denoiser configured for the ai-coustics provider.
model_id
str
default:"rook-l-48khz"
Identifier of the ai-coustics model to use.
sample_rate
int
default:"48000"
Sample rate, in hertz, expected by the model.
chunk_ms
int
default:"10"
Audio chunk size in milliseconds.
gateway_token
Optional[str]
Authentication token for the denoising gateway. Falls back to the ZRT_AUTH_TOKEN environment variable when not provided.
base_url
Optional[str]
Base URL of the denoising service.
returns
'Denoise'
A Denoise instance using the aicoustics provider.

rnnoise

Create a denoiser configured for the RNNoise provider.
returns
'Denoise'
A Denoise instance using the rnnoise provider.

sanas

Create a denoiser configured for the Sanas provider.
model_id
str
default:"VI_G_NC3.0"
Identifier of the Sanas model to use.
sample_rate
int
default:"16000"
Sample rate, in hertz, expected by the model.
chunk_ms
int
default:"20"
Audio chunk size in milliseconds.
gateway_token
Optional[str]
Authentication token for the denoising gateway. Falls back to the ZRT_AUTH_TOKEN environment variable when not provided.
base_url
Optional[str]
Base URL of the denoising service.
returns
'Denoise'
A Denoise instance using the sanas provider.