I try to run my code and this error appeared
Traceback (most recent call last):
File "c:\Users\Admin\Desktop\iBot\alarm\test.py", line 2, in <module>
playsound(r"C:\Users\Admin\Downloads\wasx.mp3")
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 35, in _playsoundWin
winCommand('open "' + sound + '" alias', alias)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 31, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 277 for command:
open "C:\Users\Admin\Downloads\wasx.mp3" alias playsound_0.9682964963682018
A problem occurred in initializing MCI.
This is my code
from playsound import playsound
playsound(r"C:\Users\Admin\Downloads\wasx.mp3")
I've try to search about this error but I still cannot find the answer to fix this problem.