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.
Parameters
Section titled “Parameters”chunks
Section titled “chunks”AsyncIterable<Uint8Array<ArrayBufferLike>>
Returns
Section titled “Returns”AsyncGenerator<Uint8Array<ArrayBufferLike>>
Throws
Section titled “Throws”For an Ogg stream that is not 48 kHz Opus with at most two channels.