mallorbc / whisper_mic

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

Stop listening after a period of silence #42

Closed pawelk1337 closed 9 months ago

pawelk1337 commented 11 months ago

if its listening for example result = mic.listen(timout=6) make it so it automaticly stops after a silence_timeout (deflaut 1.5s)

pawelk1337 commented 11 months ago

BTW you can add an ability to change the lang to one (example mic = WhisperMic(model="large", lang="polish"))

mallorbc commented 10 months ago

PR #47 fixes the listen issue you are describing here but introduces issues with listen_loop. I will merge that PR when I or someone else fixes those issues.

Thanks!