Reputation: 580
I use the playsound
library and the code below does not work.
from playsound import playsound
playsound('Startup.mp3',True)
and i get this error
Error 277 for command:
open "Startup.mp3" alias playsound_0.2205048182406233
A problem occurred in initializing MCI.
Upvotes: 0
Views: 1879
Reputation: 11
Install K-lite codec pack standard. It's work for me. http://codecguide.com/download_k-lite_codec_pack_standard.htm
Upvotes: 1
Reputation: 2675
I have run into issue with that library. I would recommend you to use the pygames
library and from it the mixer
function.
from pygame import mixer
mixer.init() # initiate the mixer instance
mixer.music.load('money.wav') # loads the music, can be also mp3 file.
mixer.music.play() # plays the music
Upvotes: 1