Skip to content

Instantly share code, notes, and snippets.

@RyanRamthun
RyanRamthun / README.md
Last active August 29, 2020 16:55
A simple mp3 player using tkinter.

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

Raspberry Pi Audio Visualiser

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:

Raspberry Pi Visualiser