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

Update __init__.py #726

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

TomKranenburg
Copy link

Adding automatic microphone reconnect loop to compensate for microphone errors/disconnects. Now If a microphone disconnects, once it reappears the listen_in_background process will automatically resume listening. Checking periodically every 5 seconds to see if the source has returned. This is very useful in many situations. Especially if you have a wireless headset for example and you walk out of range. Or just a flaky microphone(Common, especially on modern windows systems).

Adding this and closing my old pull request. After a huge amount of testing on Windows 10 my previous pull request introduced an extreme long term memory leak. Apologies for this. I'm not sure where the fault that allowed this leak actually lies. So I've coded around it instead.

This is the modification I'm currently using in my own personal setup. Just opening a pull request to attempt to help the community a little. You might decide it's not appropriate and that's totally fine. Thanks for producing this package I've found it incredibly useful in my private and professional life.

I've tested this patch with my own custom virtual assistant that I use every day for several months.

Add automatic microphone reconnect loop to compensate for microphone errors
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

Successfully merging this pull request may close these issues.

None yet

1 participant