我正在尝试使用该playsound
模块在 Python 中制作一个简单的节拍器。但是当我运行它时,出现以下错误:
Traceback (most recent call last):
File "/run/media/mb/Volume/Dokumente/Coding/Python/Metronom/metronom.py", line 5, in <module>
playsound("Cowbell.wav")
File "/usr/lib/python3.7/site-packages/playsound.py", line 106, in _playsoundNix
"playbin.set_state returned " + repr(set_result))
playsound.PlaysoundException: playbin.set_state returned <enum GST_STATE_CHANGE_FAILURE of type Gst.StateChangeReturn>