createOpusEncoder

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

Creates a new Opus encoder based on server VoiceInfo.

Return

An opus AudioEncoder.

Parameters

stereo

Whether the encoder should be stereo.