Simple_MP3_Player.py
This program will ask you to specify an MP3 file location. The appended file name will be added to a tkinter list. Press the play button and the mp3 file will begin to play using pygame.
Libraries:
tkinter
askopenfilename
Simple_MP3_Player.py
This program will ask you to specify an MP3 file location. The appended file name will be added to a tkinter list. Press the play button and the mp3 file will begin to play using pygame.
Libraries:
tkinter
askopenfilename
To play music at home, I use a Raspberry Pi and Shairport-sync to receive an Airplay stream and output via a pair of USB speakers.
I wanted to sample the audio stream, display an audio visualiser on the Display-o-Tron LCD display. Additionally I wanted to display the track info, which can be read from the metadata.
Using a bit of python magic, we can tie it all together...! Watch it all in action: