Description
Below snippet, I have written I am facing recognition.onresult() event fails to trigger in the devices I couldn't able to identify what is the issue.
[x] Some time recognition.start() will trigger and sometimes it fails to trigger.
[x] recognition.onresult() wont trigger at all (not working at all)
[x] recognition end() some time fails to trigger
so can you please help me to resolve above issue
Device details
Andorid version - 5.0.1
Model number - Lenova TAB 2A7-20HC
var recognition;
if ("undefined" != typeof cordova) {
document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady() {
recognition = new SpeechRecognition();
recognition.start();
recognition.onend = function() {
recognition.start();
};
recognition.onresult = function(event) {
if (event.results.length > 0) {
value = event.results[0][0].transcript;
console.info('speech value', value);
instance.dispatchspeechTextEvent(value);
}
};
}
}```
Description Below snippet, I have written I am facing recognition.onresult() event fails to trigger in the devices I couldn't able to identify what is the issue.
[x] Some time recognition.start() will trigger and sometimes it fails to trigger.
[x] recognition.onresult() wont trigger at all (not working at all)
[x] recognition end() some time fails to trigger
so can you please help me to resolve above issue
Device details Andorid version - 5.0.1 Model number - Lenova TAB 2A7-20HC