A small library for A-Law and mu-Law audio coding (G.711 standard). Current version 1.6.5, updated on PyPI. Maintained sporadically.
pip install g711No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Encode and decode 16-bit linear PCM samples to/from 8-bit G.711 A-Law/u-Law bytes.
Always clamp your input to the valid range before passing to linear2alaw/linear2ulaw.
Use `encoded_bytes = bytes([linear2ulaw(sample) for sample in samples])` to write as raw bytes.
Use current function names: linear2ulaw, ulaw2linear, linear2alaw, alaw2linear.
No dependency data recorded yet.