Skip to main content

Xiph.org's Ogg Vorbis, Opus and FLAC for Python

Project description

PyOgg provides bindings for Xiph.org’s OGG Vorbis, OGG Opus and FLAC audio file formats.

It requires the OGG library (e.g. libogg.dll) and at least either OGG Opus’ libraries (e.g. libopus.dll, libopusfile.dll) and / or OGG Vorbis’ libraries (e.g. libvorbis.dll, libvorbisfile.dll) to support Opus and Vorbis respectively, or the FLAC C library (e.g. libFLAC.dll) for FLAC support.

All the functions, structures and datatypes are the same as in the C++ implementation, except for some that couldn’t be translated. If you want to use them natively you will have to use ctypes’ data types. Please refer to the official documentation and the C++ headers.

You can import the various functions from pyogg.ogg, pyogg.vorbis, pyogg.opus and pyogg.flac or use the predefined classes and functions from pyogg.

PyOgg is not capable of playing files, however, you can use OpenAL for normal or even 3D playback with PyOpenAL.

Currently FLAC cannot be streamed (at least not on Windows), because there seems to be an issue with processing single audio frames.

You can find a reference on GitHub

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyOgg-0.5.10a1.tar.gz (33.9 kB view hashes)

Uploaded Source

Built Distribution

PyOgg-0.5.10a1-py2.py3-none-any.whl (33.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page