speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

Integrating a hotword/wake up word with google SpeechRecognition

Open dipendra77 opened this issue 7 years ago • 1 comments

Hi, How can I integrate a hotword / wake up keyword in my application so as I can call the google speech api to perform specific command (say turn on RED LED) only after it detects the hotword defined by us. program flow should be as follows: detects a hotword(may be through another application such as mycroft or snowboy) ->selecting the input audio source-> receiving audio input-> converting speech to text-> perform operations based on the text generated. I am using a usb microphone (Respeaker 4 mic array v2.0 to be specific). I have tried with mycroft engine but once it detects the hotword the pyaudio does not seem to close the input stream and hence the google speech api is not able to access the mic for further speech to text conversion. Is there any way possible to use any hotword detector application which works with SpeechRecognition api hand in hand? Any help will be appreciated. Thank you

dipendra77 avatar Dec 24 '18 10:12 dipendra77

Hi @Dipendra77, some years after your post i'm experiencing the same issue. Did you manage to solve the problem? When calling Microphone() there is no way to stop the input stream.

Thank you, Andrea

TheBrugne avatar Jun 07 '22 07:06 TheBrugne