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

MCI error message in speech mode #191

Closed
deronkel82 opened this issue Apr 4, 2023 · 3 comments
Closed

MCI error message in speech mode #191

deronkel82 opened this issue Apr 4, 2023 · 3 comments

Comments

@deronkel82
Copy link

When using speed mode it works once and then the following error occurs:

←[32mSpeak Mode: ←[0mENABLED

Error 263 for command:
    open speech.mpeg
Gerät ist nicht geöffnet oder wird vom MCI nicht erkannt.

Error 263 for command:
    close speech.mpeg
Gerät ist nicht geöffnet oder wird vom MCI nicht erkannt.

Failed to close the file: speech.mpeg
Traceback (most recent call last):
File "D:\KI\Auto-GPT-master\scripts\main.py", line 275, in
prompt = construct_prompt()
File "D:\KI\Auto-GPT-master\scripts\main.py", line 164, in construct_prompt
print_to_console(
File "D:\KI\Auto-GPT-master\scripts\main.py", line 30, in print_to_console
speak.say_text(f"{title}. {content}")
File "D:\KI\Auto-GPT-master\scripts\speak.py", line 45, in say_text
success = eleven_labs_speech(text)
File "D:\KI\Auto-GPT-master\scripts\speak.py", line 27, in eleven_labs_speech
playsound("speech.mpeg")
File "C:\Users\heins\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "C:\Users\heins\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 263 for command:
open speech.mpeg
Gerät ist nicht geöffnet oder wird vom MCI nicht erkannt.

@user41pp
Copy link

user41pp commented Apr 4, 2023

Downgrading playsound fixed it for me

pip install playsound==1.2.2

See this stackoverflow thread

@deronkel82
Copy link
Author

This worked! Thanks!

@alybaba32
Copy link

Downgrading playsound fixed it for me

pip install playsound==1.2.2

See this stackoverflow thread

Worked!

Say383 pushed a commit to Say383/Auto-GPT that referenced this issue Sep 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

3 participants