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

Stream read error [Errno -9988] Stream closed #118

Open
danielquintas8 opened this issue Sep 25, 2024 · 3 comments
Open

Stream read error [Errno -9988] Stream closed #118

danielquintas8 opened this issue Sep 25, 2024 · 3 comments

Comments

@danielquintas8
Copy link

I have been getting this error consistently now. Any ideia on how to fix it?

@KoljaB
Copy link
Owner

KoljaB commented Sep 30, 2024

Got this one too 5 min ago. Was only one single time here and I could not reproduce it so far. Just wanted to let you know that I'm aware and looking for a solution.

@danielquintas8
Copy link
Author

Deleting pyaudio package and adding it again seems to help. However, its only a temporary solution, as this eventually happens again...

@KoljaB
Copy link
Owner

KoljaB commented Sep 30, 2024

Did some research and found the -9988 mentioned in a lot of github issues. Did not find a solution though, I feel it can occur due to a lot of reasons. One might be an input overflow like mentioned here, which could probably be fixed by adding exception_on_overflow=False to the method that reads from the stream. But I'd expect a -9981 error to be logged before that.

Might be some microphone or hardware issue, not sure. I'll add the exception_on_overflow parameter just in case and implement reinitialization of pyaudio stream in case of errors. No perfect solution, but should at least help.

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

2 participants