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
| Name | Type | Description |
|---|---|---|
| Peer ID | integer | Local Peer ID. |
| Sample Rate | integer | Sample rate for audio (default 48000). |
| Stereo | boolean | Whether to use stereo. |
Outputs
| Name | Type | Description |
|---|---|---|
| Return Value | object | The constructed encoder. |