Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.