首页 > 解决方案 > 请在我尝试过的以下代码中帮助我,但它给出错误“驱动程序无法识别指定的命令参数”

问题描述

Error 259 for command:
        play "F:\Audios\funny71.mp3" wait
    The driver cannot recognize the specified command parameter.
Traceback (most recent call last):
  File "C:\Users\preet\OneDrive\Desktop\wajir wajir game 1.py", line 5, in <module>
    playsound('F:\\Audios\\funny71.mp3')
  File "C:\Users\preet\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 73, in _playsoundWin
    winCommand(u'play {}{}'.format(sound, ' wait' if block else ''))
  File "C:\Users\preet\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 64, in winCommand
    raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException: 
    Error 259 for command:
        play "F:\Audios\funny71.mp3" wait
    The driver cannot recognize the specified command parameter.

标签: python

解决方案


推荐阅读