Python module for decoding compressed audio files
Project description
“decoder.py” is a cross-platform module for decoding compressed audio files. It uses external decoders by turning their stdout into a file-like object which is completely compatible with the Wave_read class from wave.py module. With it you can decode the following file formats: MPEG Layers 1, 2, and 3 (.mp1, *.mp2, *.mp3) MPEG-4 HE-AAC (.mp4, .m4a, *.m4b, *.aac) OGG Vorbis (.ogg) Free Lossless Audio Codec (.flac) Windows Media Audio (.wma)
In combination with PyAudio, or some similar module/library, you can use “decoder.py” to play compressed audio files.
For full documentation consult the source code.