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.

  • Node type: Callable function. Has execution pins and runs when it is reached in the event graph.
  • Menu category: Odin › Audio Pipeline
  • C++: UOdinEncoder::ConstructEncoder

Inputs​

NameTypeDescription
Peer IdInteger64Peer ID written into the voice packets. Use 0 to fill in the own peer ID of the room the packets are sent to.
Sample RateIntegerSample rate of the audio pushed into the encoder, e.g. 48000.
StereoBooleanTrue if the pushed audio is interleaved stereo.

Outputs​

NameTypeDescription
Return ValueOdin EncoderThe constructed encoder.