+ 5

How to play a song in python

13th Aug 2018, 4:14 PM
Siddharth Acharya
Siddharth Acharya - avatar
4 Answers
+ 6
import pyglet music = pyglet.resource.media('name.mp3') music.play() pyglet.app.run() Or you can use 'os' library, but I can't send you example, I haven't it.
13th Aug 2018, 9:44 PM
Mykyta Melnyk
Mykyta Melnyk - avatar
13th Aug 2018, 4:30 PM
LetterC67
LetterC67 - avatar
+ 2
thnks
14th Aug 2018, 6:41 AM
Siddharth Acharya
Siddharth Acharya - avatar
+ 2
pip install playsound(in cmd) in IDE from playsound import playsound playsound('filename.mp3')
15th Aug 2018, 12:01 PM
Twinkle Kaur