audio_resample
Convert every input audio track to a target sample rate and optional channel
count. This is an n:n node: each input track has independent conversion state
and remains a separate output track with its participant and track metadata
preserved.
Example
Section titled “Example”{ "name": "pcm16k", "type": "audio_resample", "inputs": ["room_src"], "config": { "sampleRate": 16000, "channels": 1 }}Config
Section titled “Config”| Field | Type | Default | Description |
|---|---|---|---|
sampleRate | int | 16000 | Output rate. Values outside the allowed set are snapped to the nearest of {8000, 16000, 24000, 32000, 44100, 48000}. |
channels | int | input channels | Output channel count: 1 for mono or 2 for stereo. Omit or set 0 to preserve each input track’s channel count. |
Track behavior
Section titled “Track behavior”For a multi-participant RTC source, each microphone stays independent:
alice/mic ──► audio_resample ──► alice/mic @ 16 kHz monobob/mic ──► audio_resample ──► bob/mic @ 16 kHz monoUse audio_mixer instead when you need one combined
audio stream.
Pricing
Section titled “Pricing”$0.00005 per active track-minute, calculated from the sum of audio duration processed across all input tracks. Node pricing.