Skip to main content

Module codec

Module codec 

Source
Expand description

Telephony / streaming audio codecs.

Each codec lives in a submodule so the public surface stays deliberately granular: a consumer that only needs G.711 imports wavekat_core::codec::g711. Future additions (iLBC, …) live beside them and stay independently selectable.

Opus is gated behind the opus cargo feature because it pulls a C build dependency (vendored libopus via audiopus_sys); the crate stays pure-Rust for consumers that don’t opt in. The feature also unlocks Encoder / Decoder — the codec-agnostic seam for consumers that negotiate their codec per call.

Modules§

g711
G.711 μ-law (PCMU) and A-law (PCMA) codecs.
opus
Opus codec (RFC 6716) — the wideband voice profile for telephony.

Enums§

Decoder
The decode half of a negotiated call codec.
Encoder
The encode half of a negotiated call codec.