play mp3 file python

39

import pygame
pygame.mixer.init()
pygame.mixer.music.load('sample.mp3')
pygame.mixer.music.play()

Comments

Submit
0 Comments