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

I am getting this error in realtimestt_test.py code: #132

Open circle-games opened 1 month ago

circle-games commented 1 month ago

File "/home/falan/.my_venv/lib/python3.10/site-packages/RealtimeSTT/audio_recorder.py", line 124, in run File "/usr/lib/python3.10/signal.py", line 56, in signal system_signal.signal(system_signal.SIGINT, system_signal.SIG_IGN) File "/usr/lib/python3.10/signal.py", line 56, in signal handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) ValueError: signal only works in main thread of the main interpreter ValueError: signal only works in main thread of the main interpreter

KoljaB commented 1 month ago

Please try the code from here where it's already fixed. Release coming soon.