mallorbc / whisper_mic

Project that allows one to use a microphone with OpenAI whisper.
MIT License
705 stars 158 forks source link

[Fix] Keyboard interrupt for listen_loop #53

Closed szriru closed 10 months ago

szriru commented 11 months ago

For windows 11, it seems "ctrl+c" doesn't stop the process completely.

[Reproduct process]

  1. pip install of whisper_mic
  2. "whisper_mic --loop"
  3. wait for the initialization
  4. "Ctrl+c"
  5. "Aborted!" shows in the command line. but the command line doesn't start to accept new commands. (chatgpt says "Aborted!" is related to the operating system or the C runtime library btw.)
mallorbc commented 10 months ago

fixed in latest PR