View Source Membrane.Opus.Decoder (Membrane Opus plugin v0.20.1)

This element performs decoding of Opus audio.

Element options

Passed via struct Membrane.Opus.Decoder.t/0

  • sample_rate

    8000 | 12000 | 16000 | 24000 | 48000

    Default value: 48000
    Sample rate to decode at. Note: Opus is able to decode any stream at any supported sample rate. 48 kHz is recommended. For details, see https://tools.ietf.org/html/rfc7845#section-5.1 point 5.

Pads

:input

Accepted formats:

%Opus{self_delimiting?: false}
%RemoteStream{type: :packetized, content_format: format} when format in [Opus, nil]
Direction::input
Availability::always
Flow control::auto

:output

Accepted formats:

%RawAudio{sample_format: :s16le}
Direction::output
Availability::always
Flow control::auto

Summary

Types

t()

Struct containing options for Membrane.Opus.Decoder

Functions

Returns description of options available for this module

Types

@type t() :: %Membrane.Opus.Decoder{sample_rate: 8000 | 12000 | 16000 | 24000 | 48000}

Struct containing options for Membrane.Opus.Decoder

Functions

@spec options() :: keyword()

Returns description of options available for this module