Skip to content

demuxOggOpus

demuxOggOpus(chunks): AsyncGenerator<Uint8Array<ArrayBufferLike>>

Defined in: packages/voice/src/ogg.ts:36

Reads Opus packets out of an Ogg/Opus stream without decoding them (the passthrough path: no Opus library, no re-encoding). Skips the OpusHead and OpusTags headers. Memory is bounded by one page and one packet.

AsyncIterable<Uint8Array<ArrayBufferLike>>

AsyncGenerator<Uint8Array<ArrayBufferLike>>

For an Ogg stream that is not 48 kHz Opus with at most two channels.