How to end Google Speech-to-Text streamingRecognize gracefully and get back the pending text results?

后端 未结 3 1200
心在旅途
心在旅途 2020-12-20 20:58

I\'d like to be able to end a Google speech-to-text stream (created with streamingRecognize), and get back the pending SR (speech recognition) results.

In a nutshell,

3条回答
  •  囚心锁ツ
    2020-12-20 21:30

    Since it's a bug, I don't know if this is suitable for you but I have used this.recognizeStream.end(); several times in different situations and it worked. However, my code was a bit different...

    This feed may be something for you: https://groups.google.com/g/cloud-speech-discuss/c/lPaTGmEcZQk/m/Kl4fbHK2BQAJ

提交回复
热议问题