Skip to content

createOpusCodec

createOpusCodec(): Promise<OpusCodec>

Defined in: packages/voice/src/opus.ts:66

Creates an Opus codec: Lunibee’s Opus on the system’s libopus when it is installed (native speed, nothing to compile), otherwise opusscript, an optional peer dependency. Playing Ogg/Opus files, or anything through FFmpeg without inlineVolume or effects, needs neither.

Promise<OpusCodec>

If neither is available.