Membrane.G711 (Membrane G711 Format v0.1.1)

Copy Markdown View Source

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

encoding()

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

Companding algorithm used:

  • :PCMA - G.711 A-law
  • :PCMU - G.711 mu-law

t()

@type t() :: %Membrane.G711{encoding: encoding()}

Functions

num_channels()

(macro)
@spec num_channels() :: 1

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

sample_rate()

(macro)
@spec sample_rate() :: 8000

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