KoljaB / RealtimeSTT

A robust, efficient, low-latency speech-to-text library with advanced voice activity detection, wake word activation and instant transcription.
MIT License
2.09k stars 190 forks source link

fix: make sure shutdown() wakes up the recording_thread #72

Closed oddlama closed 1 week ago

oddlama commented 5 months ago

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.

oddlama commented 5 months ago

Should fix #20

KoljaB commented 1 week ago

Thank you!