I keep getting error 277 : a problem occurred in initializing MCI.
when using playsound
module. I basically just did this:
from playsound import playsound
playsound('what.mp3')
the what.mp3
is generated using gtts
.
I keep getting error 277 : a problem occurred in initializing MCI.
when using playsound
module. I basically just did this:
from playsound import playsound
playsound('what.mp3')
the what.mp3
is generated using gtts
.
I know this is too late but try to install Klite Codec Pack and try again, worked for me
I just solved the same issue using playsound by doing 2 steps:
I re-encoded the .mp3 with Audacity because the files that i downloaded from a webconverter was trashy. (still not working)
I added the True value at the end, like this:
from playsound import playsound
playsound('/path/to/a/sound/file/you/want/to/play.mp3, True')
Then it worked. I hope it's helpful.
You can try this approach
from playsound import playsound
playsound('C:\\Users\\shubham sinha\\Desktop\\code\\01RitvizLiggiOfficialMusicVideoRingtone.mp3')
Try using this test code to see if it works:
from playsound import playsound
playsound('/path/to/a/sound/file/you/want/to/play.mp3')
If it doesn't install it again or try another version of python.
you should write like this:
from playsound import playsound
playsound('C:\\Users\\Talha Shafiq Chadhry\\Downloads\\Video')
I used to get this error, Now solved... Try this one
import playsound
playsound.playsound("D:\\Yalgaar.mp3")
Here Yalgaar is saved in my D drive