View Source Membrane.G711 (Membrane G711 Format v0.1.0)

This module provides format definition for G.711 audio stream

Summary

Types

Companding algorithm used

t()

Functions

Number of channels in G.711 stream (always mono, 1 channel)

Sample rate of G.711 stream (always 8000 Hz)

Types

@type encoding() :: :PCMA | :PCMU

Companding algorithm used:

  • :PCMA - G.711 A-law
  • :PCMU - G.711 mu-law
@type t() :: %Membrane.G711{encoding: encoding()}

Functions

Link to this macro

num_channels()

View Source (macro)
@spec num_channels() :: 1

Number of channels in G.711 stream (always mono, 1 channel)

@spec sample_rate() :: 8000

Sample rate of G.711 stream (always 8000 Hz)