-
Notifications
You must be signed in to change notification settings - Fork 98
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
Input Overflowed -9981 #43
Comments
Hi again, sorry you're having more issues. I hope you got everything fixed on your main computer/system. As for the RPi 2, one of the developers in our community posted these comments:
And with respect to this issue:
This seems to be a popular issue: I'll be looking into this issue more, but maybe this will help in the meantime. |
I was able to suppress this error by modifying the "buf = stream.read(1024)" line in stt.py to "buf = stream.read(1024, exception_on_overflow=False)" (still getting lots of errors though) |
Hi joshgel, Try using pulseaudio with the Raspberry Pi 2. It kinda makes it work better. pulseaudio -D Then, you can use: pactl list short Copy the desired input device, and: For example: pactl set-default-source alsa_input.usb-0d8c_USB_PnP_Sound_Device-00-Device.analog-mon I am very busy lately, but i'll try to contact the developers and update the documentation on how to make everything work properly under the raspbian. Hope it helps. |
The last 2 days i have been in a lot of issues with Athena.
Know i have decided to use Athena on my Raspberry Pi 2.
After installing i put the command
from athena import __main__
Now i get this error message:
~ Hey there, ThaSmokey!
~ Try asking:
~ Waiting to be woken up...
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/athena/brain.py", line 224, in run
stt.listen_keyword()
File "/usr/local/lib/python3.4/dist-packages/athena/stt.py", line 45, in listen_keyword
buf = stream.read(256)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 605, in read
return pa.read_stream(self._stream, num_frames)
OSError: [Errno Input overflowed] -9981
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.4/dist-packages/athena/main.py", line 4, in
brain.inst.run()
File "/usr/local/lib/python3.4/dist-packages/athena/brain.py", line 240, in run
raise Exception
Exception
I have searched they hole internet, also changed de sample rate and the (CHUNK) buf = stream.read(256) from 2/4/8/16/32/64/128/256/512 to 8192
I have used a microphone and a build-in microphone from a webcam.
The text was updated successfully, but these errors were encountered: