hi i want to make a basic music player in python but i cannot figure out the right libraries for playing audio? i am planning to use TkInter for implementing the GUI. Any suggestions about the libraries i could use and the approach i should follow ?
yes had i look at this link before , tried the wave module but did not succeed (constantly getting the same error "wave.Error: unknown format: 6", file attached) So far what i have in mind is that these modules like wave and audioop are tools for manipulating audio files. so for building the music player i will need the following steps: 1. A tool for manipulation of the audio 2. tool to play the audio(i.e sound from the speakers) 3. GUI part(later on) if what i am thinking is correct approach , i still could not find a proper way to start implementing this approach. so it will be indeed helpful if you could elaborate a little more on how i should begin PS: sorry for the weird sounds in the audio
The most easy way to play audio files in python is using Snack Toolkit in my opinion. http://www.speech.kth.se/snack/ u can Install the module here it can play wav and mp3 files quite easily here is the example code--- s = Sound() s.read('abc.wav') s.play()
Join our real-time social learning platform and learn together with your friends!