First, I'm a Python beginner, with a typical C ++ / Java background for object oriented material.
I was convinced to try Python for this ongoing effort I am working on, and still enjoy it. One of the questions I have is finding a good mp3 module.
I tried TkSnack, which was installed and worked fine, without errors (until my audio device was busy), but it could never make a sound, it just didn’t do anything ... I went online and was disappointed with the amount of documentation.
So, I decided to switch. I tried PyMad because it is also in standard repositories for Ubuntu. There was even less documentation on this, but I could make him play a sound. The only problem is that this requires a loop to constantly record / play the audio buffer. This makes it especially attractive for controlling playback (in my opinion), because I would have to run it in a separate thread or process and somehow control the search position for pause, etc. This is too low for why I use Python. I liked the simplicity of TkSnack for its simple commands, such as "mysound.play ()" or "mysound.pause ()", and not for loop control.
I also looked at pyMedia, which looks like it is the most up-to-date documentation, but I cannot install it on my machine. I get the message "gcc exited with value 1" or something similar when I run the command "python setup.py build".
So, I’m looking for any suggestions or help on one of these modules or completely different, which is high level and convenient for use in mp3 (and, preferably, in other formats). I am trying to have basic playback controls (pause, stop, skip, search) and at the same time I can transfer file streams (if I ever get there).
EDIT: python Gstreamer, - ? . GStreamer Linux, ?
: Wikipedia yes.