Reading and Writing WAV files with compression in Python using Pywav

Testing voice applications involve handling RTP streams. Most of the IVR applications use PCMA/PCMU codecs to stream voice over RTP. PyWav is a Python library which helps you to convert those RAW streams with PCMU/PCMA encodings into a WAV file.