Python pygame – Play MP3 files in Python🎵

In this post we will be creating a Python script that will play MP3 files, we will be doing this using the Pygame library. This library is a set of Python-modules designed for writing video games, its ability to play MP3 files is intended for in game audio.

See the snippet of code below that will play an MP3 file named ‘Music’.

from pygame import mixer 


Leave a Reply