createOpusEncoder

@NotNull
abstract fun createOpusEncoder(stereo: Boolean): @NotNull AudioEncoder

Creates a new opus encoder using params created from ProxyConfig.

Sample rate: 48_000 Opus mode: VOIP Opus bitrate: -1000 (auto)

Return

AudioEncoder instance.

Parameters

stereo

true if the encoder should be initialized in stereo mode.