μ-law voice quality musings #282
jozsefszalma
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really like the PyVoIP library as it offers the right level of abstraction. I searched all over the net for a solution to my issue, so before anyone else spends days debugging audio quality problems with μ-law encoding, here are a couple of observations:
PyVoIP handles audio encoding and decoding as follows:
This code assumes that you're passing 8-bit unsigned audio to call.write_audio, and the lin2ulaw conversion happens internally.
Implications:
To solve my own use-case I turned the encode_pcmu and the parse_pcmu functions in a fork to pass-through and deal with the encoding and decoding outside PyVoIP.
Beta Was this translation helpful? Give feedback.
All reactions