evancohen / sonus

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

Final results for empty transcripts #27

Closed evancohen closed 7 years ago

evancohen commented 7 years ago

This PR is for two things:

According to the Google Cloud Speech RPC documentation when using single_utterance we should stop streaming audio after the END_OF_UTTERANCE EndpointerType is received.

When an utterance is complete and there is no transcript (ie: no recognized speech) we should send a final-result with an empty string.

ashishsc commented 7 years ago

I'll take a look soon, preliminary scan says it looks good.