Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Cross-platform 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 ),
OGG FLAC ( *.oga ),
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.

Project details


Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page