evancohen / sonus

:speech_balloon: /so.nus/ STT (speech to text) for Node with offline hotword detection
MIT License
619 stars 79 forks source link

replace endpointerType with speechEventType #42

Closed matrixOperator closed 7 years ago

matrixOperator commented 7 years ago

Issue: The hotword+speech to text operation worked the first time, but the speech to text operation failed after detecting the hotword the second time.

The internal state cloudSpeechRecognizer.listening failed to reset, such that CloudSpeechRecognizer.startStreaming() does not restart/reset after the second hotword trigger.

This has to do with the update from google.cloud.speech.v1beta1 to google.cloud.speech.v1 in google-cloud-node/speech: 0.9.0. Read more : StreamingRecognizeResponse

P.S. Thank you contributors for this sweet module!

evancohen commented 7 years ago

You're absolutely right, good catch :) I'm going to merge this and then publish an npm update this week.