Pygame plays mp3 files. I had the same problem, but I found a solution:
if you saved your mp3 file as "filename.mp3" and you yourself wrote the .mp3 extension, then the file name in pygame pygame.mixer.music.load () should be written as "filename.mp3" .mp3 ', because python expects you to add .mp3. Sometimes .mp3 is already included in the file name if you manually saved it as.
So try the following: pygame.mixer.music.load('filename.mp3.mp3')
source share