I'm using Google's Javascript SDK voice recognition (webkitSpeechRecognition) for Chrome where I automatically turn on the recognition
process and it then submits whatever the user said into my app's submit form on the followig event:
recognition.onend = function(){}
The problem is that it takes quite long for onend
to arrive.
I tried using onspeechend
or onsoundend
but it would fire at the same moment as onend
.
I need something that fires right when the person finished talking or not so long thereafter.
Can anybody recommend a setting that I'm missing in this JS SDK or a solution?
Thank you!