[][src]Function serenity::voice::opus

pub fn opus<R: AsyncRead + Unpin + Send + Sync + 'static>(
    is_stereo: bool,
    reader: R
) -> Box<dyn AudioSource>

Creates an Opus audio source. This makes certain assumptions: namely, that the input stream is composed ONLY of opus frames of the variety that Discord expects.

If you want to decode a .opus file, use ffmpeg