RealtimeSTT
RealtimeSTT copied to clipboard
recorder.stop() called in parallel don't work when recoder.text() already running
I've set up a hotkey with the keyboard module so that when I press ctrl-d a function calls recorder.stop() in parallel while recorder.text() is already running. I've noticed that when I call recorder.stop() in parallel it has no effect (recorder.text always stays running and the next line of code isn't called) which I find a bit embarrassing. Could someone please help me?
ps: i don't want to call recoder.shutdown() because i use recorder.text() in a while loop