Explicit pipeline encoding and byte timing for PCM16LE and G.711 μ-law.
Summary
Types
@type t() :: %Parlora.AudioFormat{ channels: pos_integer(), codec: :pcm | :pcmu, sample_format: :s16le | nil, sample_rate_hz: pos_integer() }
Functions
@spec bytes_for_ms(t(), non_neg_integer()) :: non_neg_integer()
@spec duration_us(t(), non_neg_integer()) :: non_neg_integer()
@spec pcmu() :: t()
@spec sample_bytes(t()) :: pos_integer()
@spec silence(t(), non_neg_integer()) :: binary()