Create an opus encoder.
Sampling rate of input signal (Hz) This must be one of 8000, 12000, 16000, 24000, or 48000.
Number of channels (1 or 2) in input signal.
Coding mode.
The bitrate of the encode.
Encodes an Opus frame from 16-bit signed integer input.
PCM input signal buffer. Length is frame_size * channels * 2.
Number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate.
The encoded Opus packet of the frame.
Encodes an Opus frame from floating point input.
PCM input signal buffer. Length is frame_size * channels * 2.
Number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate.
The encoded Opus packet of the frame.
A class that encodes PCM input signal from 16-bit signed integer or floating point input.