Play music using python
Python Snippet :
from pygame import mixer
file='musicname.mp3'
#filename with path
mixer.init()
mixer.music.load(file)
mixer.music.play()
Python Snippet :
from pygame import mixer
file='musicname.mp3'
#filename with path
mixer.init()
mixer.music.load(file)
mixer.music.play()
Comments
Post a Comment