Python - Libraries for MP3

Asked

Viewed 7,641 times

2

I am conducting a project based on the Python language and that requires good performance in the playback of Audios (MP3). I am currently using the PyGame with his pygame.mixer.music to be able to perform songs, however this lib is very weak and reclusive, which does not allow progress in software development.

I would like to know if there are better libraries for this case, and that allow me to quickly and without complications, calculate the durability time and have greater volume control in applications, among others.

  • You can check this component : https://github.com/np1/mps. It seems to be complete.

  • @Bruno u just download and install here, but it opens in command line, I believe that it is not an API, but a software already made (is what it seems)

  • link take a look at pymedia for python < 2.7, there are no easy paths when it comes to audio hehe, audio manipulation, to increase the volume decrease can be done after Code, the same can be done by calculating the size of the decoded vector to know the audio size, which python version is using ?

  • @ederwander - I’m using Python 3.5, but I don’t know much about audio manipulations, now I’m creating something simple, but while I try something simple I try something advanced, I used Pygame and tried to learn Mutagen, now I’ll go see Pymedia, in summing all, which one do you prefer?

  • @Félix Pymedia does not support python 3.5 :-(

  • @Ederwander, this is a problem

Show 1 more comment

1 answer

1

Well, I still don’t quite understand what your goal is with the project. But when it comes to audio, Python is still a bit sparse. However, there are still some libs capable for playback and/or audio recording such as: Pysoundcard, Pymedia, playsound, python-audio-tools, Pyaudio or even the Pyglet. Try to use and learn the one that best suits your needs within these options.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.