evancohen / sonus

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

Stream closed after final-result ? #69

Closed jaumard closed 6 years ago

jaumard commented 6 years ago

Hey :)

Since the last version I have a strange behavior, I put a Amazon Polly response right after final-result to answer my command/question, the problem is that answer is send into the recognition and send back to final-result witch is wrong because of course this one will not be recognize as a good command.

Did you experience this ? Normally after final-result google speech should be off and wait for a hotword right ?

evancohen commented 6 years ago

Do you see the hot word being accidentally being trigger when Poly is speaking?

Are you manually triggering the hot word in your code somewhere?

One work around might be to call .mute() while Poly is speaking.

jaumard commented 6 years ago

Where can I call .mute() ? sonus don't have this method (or I missed it ^^) I trigger manually the hot word after polly is speaking I'll also check maybe I have a problem there. But if there a mute method somewhere I'll use it to be safe :)

evancohen commented 6 years ago

You may be triggering the hot word before poly stops playing. That'd be my guess. Check the API docs for info on .mute()

evancohen commented 6 years ago

Closing this issue because it is stale.