报错提示:
Failed to close the file: kehuishou.mp3
Traceback (most recent call last):
File "D:\garbage\yuyin.py", line 2, in <module>
playsound("kehuishou.mp3")
File "D:\anaconda\envs\pytorch\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "D:\anaconda\envs\pytorch\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 277 for command:
open kehuishou.mp3
初始化 MCI 时发生问题。
原因:语音包有问题 语音包的格式需转换 不能直接更改后缀
解决:换一个格式转换过的语音包 就可以了
语音转换格式网址:音频格式转换器 - 一个工具箱 - 好用的在线工具都在这里!