Skip to main content
Version: 2.x

Construct Encoder

Creates a new ODIN Encoder. Encoders capture audio from a local source (like a microphone), process it (VAD, Noise Suppression), and encode it into audio frames to be sent to the server. By default, it uses a sample rate of 48kHz.

Inputs

NameTypeDescription
Peer IDintegerLocal Peer ID.
Sample RateintegerSample rate for audio (default 48000).
StereobooleanWhether to use stereo.

Outputs

NameTypeDescription
Return ValueobjectThe constructed encoder.