Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stops playing sound. Error 263 for command: #140

Open
MoreTore opened this issue Apr 8, 2023 · 2 comments
Open

Stops playing sound. Error 263 for command: #140

MoreTore opened this issue Apr 8, 2023 · 2 comments

Comments

@MoreTore
Copy link

MoreTore commented Apr 8, 2023

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
Copy link
Author

MoreTore commented Apr 8, 2023

Solution

pip uninstall playsound
pip install playsound==1.2.2

@MoreTore
Copy link
Author

MoreTore commented Apr 8, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant