Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recognition.onresult() and end() event fails to tirgger in devices #97

Open
3 tasks done
manjudr opened this issue Jun 2, 2017 · 1 comment
Open
3 tasks done

Comments

@manjudr
Copy link

manjudr commented Jun 2, 2017

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.

  • Some time recognition.start() will trigger and sometimes it fails to trigger.

  • recognition.onresult() wont trigger at all (not working at all)

  • 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);
                    }
                };

            }
        }```
@ahmadalzoubi13579
Copy link

@manjudr I have the same issue, any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants