react-speech-to-text
react-speech-to-text copied to clipboard
Android Support: Web Speech API
I am using this library on Android Chrome and I wanted to leave information for future users.
Note: I am assuming all android tablets work the same so your results may vary.
When using the Web Speech API (the backend to this library), interim results are not returned properly. Basically, all results are classified as final, even the interim ones. Another weird behavior is that Android automatically ends your recording once speech is done.
This is not super great behavior, but thankfully it allows us to detect the true final result. So if isRecording gets set to false, then read the last result and it will be your final.
The only problem I have not been able to overcome is continuous transcription. Since Android forces your recording to end, you have to restart transcription to get the next result. This is kind of annoying because you hear a little beep every time android starts and stops it's transcription engine.
Anyway, thought I'd post here for future parties. I haven't tried the googleCloudAPI version of this library yet, but my guess is that it would fix these issues.
Hi.
I have same issue. In my case I've set googleCloudAPI and occurred same situation. I started record and speech. Recording was stopped automatically.
iOS is working fine. There is just Android device.