我想做一个节拍器,我正在使用playsound.playsound()播放mp3文件。我录制了mp3声音,并使用“ Audacity”应用将其缩短了,但是当我将其真正缩短时,它就无法正常工作。 我尝试再次使用该应用程序导出具有更长声音的mp3,然后我成功地使用playsound.playsound()播放了它。
这是我得到的错误:
File "<stdin>", line 1, in <module>
File "C:\Python36\lib\site-packages\playsound.py", line 35, in
_playsoundWin
winCommand('open "' + sound + '" alias', alias)
File "C:\Python36\lib\site-packages\playsound.py", line 31, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 277 for command:
open "C:\Users\user\Desktop\one1.mp3" alias playsound_0.6062595498005745
A problem occurred in initializing MCI.