Hello?
The AudioToTextRecorder class seems to have a lot of responsibilities.
If the microphone connection is lost during program execution in _audio_data_worker, I think I need exception handling to reconnect it.
However, I implemented the exception handling to attempt to reconnect the microphone.
Is there a way to notify the user that the microphone has been disconnected?
I'll share the code I implemented. I tested it with a fairly old version, so it's different from the current source code. Could you review the code to see if I can implement the code to attempt to reconnect the microphone based on _audio_data_worker and add a warning to the user that they need to try again?
audio_recorder.zip