I’m looking for a cross-platform Python library that can play MP3 and OGG and support ALSA or similar
< partition >
There are several different audio libraries, however, none of them meet my exact needs:
– It needs to be cross-platform.
– It needs to be able to use ALSA, PulseAudio, or any other common default mixer under Linux.
– It needs to be able to automatically detect the sampling frequency.
– It has to be (quitely) simple to use, if someone can give me an extra script to make it more acceptable to me.
– The only feature I needed was play/pause, looking for was a nice bonus.
– Need to be able to play MP3 and OGG. No other format is important to me.
Libraries I’ve tried so far:
PyGame – Does not support detecting the frequency of a song
PyAudiere – promising, but only loading OSS in Linux, I have serious mixing issues
Built-in modules – MP3 and OGG are not supported as far as I know
PyMedia – promising, but also complex. Nor can I find out what hybrid equipment it uses.
PySonic – Relies on closed-source libraries.
PyQt4.phonon – promising, but won’t play anything. The following error occurred:
gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)’ failed
Any help would be appreciated.