# `Parlora.AudioFormat`
[🔗](https://github.com/hfiguera/parlora/blob/v0.1.0/lib/parlora/audio_format.ex#L1)

Explicit pipeline encoding and byte timing for PCM16LE and G.711 μ-law.

# `t`

```elixir
@type t() :: %Parlora.AudioFormat{
  channels: pos_integer(),
  codec: :pcm | :pcmu,
  sample_format: :s16le | nil,
  sample_rate_hz: pos_integer()
}
```

# `aligned?`

```elixir
@spec aligned?(term(), binary()) :: boolean()
```

# `bytes_for_ms`

```elixir
@spec bytes_for_ms(t(), non_neg_integer()) :: non_neg_integer()
```

# `duration_us`

```elixir
@spec duration_us(t(), non_neg_integer()) :: non_neg_integer()
```

# `pcmu`

```elixir
@spec pcmu() :: t()
```

# `sample_bytes`

```elixir
@spec sample_bytes(t()) :: pos_integer()
```

# `silence`

```elixir
@spec silence(t(), non_neg_integer()) :: binary()
```

# `supported?`

```elixir
@spec supported?(term()) :: boolean()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
