TaylorSMarks / playsound

Pure Python, cross platform, single function module with no dependencies for playing sounds.
Other
504 stars 118 forks source link

Stops playing sound. Error 263 for command: #140

Open MoreTore opened 1 year ago

MoreTore commented 1 year ago

Error 263 for command: open speech.mpeg The specified device is not open or is not recognized by MCI.

Error 263 for command:
    close speech.mpeg
The specified device is not open or is not recognized by MCI.

Failed to close the file: speech.mpeg Traceback (most recent call last): File "D:\Projects\Auto-GPT\scripts\main.py", line 275, in prompt = construct_prompt() File "D:\Projects\Auto-GPT\scripts\main.py", line 178, in construct_prompt config = prompt_user() File "D:\Projects\Auto-GPT\scripts\main.py", line 207, in prompt_user print_to_console( File "D:\Projects\Auto-GPT\scripts\main.py", line 30, in print_to_console speak.say_text(f"{title}. {content}") File "D:\Projects\Auto-GPT\scripts\speak.py", line 45, in say_text success = eleven_labs_speech(text, voice_index) File "D:\Projects\Auto-GPT\scripts\speak.py", line 27, in eleven_labs_speech playsound("speech.mpeg") File "C:\Users\faste\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playsound.py", line 72, in _playsoundWin winCommand(u'open {}'.format(sound)) File "C:\Users\faste\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playsound.py", line 64, in winCommand raise PlaysoundException(exceptionMessage) playsound.PlaysoundException: Error 263 for command: open speech.mpeg The specified device is not open or is not recognized by MCI.

MoreTore commented 1 year ago

Solution

pip uninstall playsound pip install playsound==1.2.2

MoreTore commented 1 year ago

https://github.com/Torantulino/Auto-GPT/issues/472