RealtimeSTT
RealtimeSTT copied to clipboard
fix: make sure shutdown() wakes up the recording_thread
This also ensures that the reader_process is not accessed if it hasn't been initialized due to use_microphone=False.
The check was wrongly checking for the object and not the value, which always returned true.
With this patch, calling recorder.shutdown() will successfully shutdown even if use_microphone is False.