Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to play a mp3 file in python

from pygame import mixer#if this module in not installed then install it by pip install pygame
mixer.init()
mixer.music.load('alarm.mp3')
mixer.music.play()
 
PREVIOUS NEXT
Tagged: #play #file #python
ADD COMMENT
Topic
Name
2+1 =