How can i open a mp3 file and play it in python?
There is a mp3 file on my Linux desktop and i want to open it from a python file and play it.
What should i do?
Jump to Post
Sooner or later you will use the pygame module anyway ...
''' pg_playmp3f.py play MP3 music files using Python module pygame pygame is free from: http://www.pygame.org (does not create a GUI frame in this case) ''' import pygame as pg def play_music(music_file, volume=0.8): ''' stream music with mixer.music module in …