demuxProbe

export declare function demuxProbe(stream: Readable, probeSize?: number, validator?: typeof validateDiscordOpusHead): Promise<ProbeInfo>;
export declare function demuxProbe(stream: Readable, probeSize?: number, validator?: typeof validateDiscordOpusHead): Promise<ProbeInfo>;
Attempt to probe a readable stream to figure out whether it can be demuxed using an Ogg or WebM Opus demuxer.
NameTypeOptionalDescription
streamReadableNo
The readable stream to probe
probeSizenumberYes
The number of bytes to attempt to read before giving up on the probe
validatortypeof validateDiscordOpusHeadYes
The Opus Head validator function