Crate m17codec2

Source
Expand description

§m17codec2

Part of the M17 Rust Toolkit. Pre-made adapters designed for the m17app crate that make it easier to work with Codec2 voice streams.

  • WavePlayer - transmit a wave file as a stream (8 kHz, mono, 16 bit LE)
  • Codec2Adapter - receive all incoming streams and attempt to play the decoded audio on the default sound card

Important licence note: While m17codec2 is under the MIT licence, it uses the codec2 crate as a dependency, which will statically link LGPL code in the build. If you are distributing software in a way where LGPL compliance requires special care (e.g., dynamic linking), consider implementing your own codec2 adapters in a way that is compliant in your scenario.

Structs§

Codec2Adapter
Subscribes to M17 streams and attempts to play the decoded Codec2
WavePlayer
Transmits a wave file as an M17 stream

Functions§

decode_codec2