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

ANNYANG RESTART #415

Open
andresh0816 opened this issue Feb 29, 2020 · 4 comments
Open

ANNYANG RESTART #415

andresh0816 opened this issue Feb 29, 2020 · 4 comments

Comments

@andresh0816
Copy link

andresh0816 commented Feb 29, 2020

I have this code and i run it with electron:

const annyang = require('annyang');
    annyang.debug();
        if (!annyang) {
            document.getElementById('writer').style.display = 'block';
        } else {
            annyang.init({}, true);
            SpeechKITT.annyang();
            SpeechKITT.setStylesheet('themes/flat.css');
            SpeechKITT.vroom();
            if (detectmob()) {
                annyang.start({
                    autoRestart: true,
                    continuous: true
                });
            } else {
                annyang.start({
                    autoRestart: true,
                    continuous: false
                });
            }
        }

but i get this response:
Speech Recognition is repeatedly stopping and starting. See http://is.gd/annyang_restarts for tips.

@The-Linguist
Copy link

Does this happen on mobile only?
Is there anything else trying to access the microphone other then annyang?
Have you tried disabling SpeechKITT?

@andresh0816
Copy link
Author

@The-Linguist how can i disable SpeechKITT?

@The-Linguist
Copy link

@The-Linguist how can i disable SpeechKITT?

Sorry, I have never used SpeechKITT. So I do not know. All I know is that mobile devices don't like it when two different things try to use the microphone at the same time. In my case I had to make some features of my app "desktop only" because of that.

@andresh0816
Copy link
Author

@The-Linguist Yeah, i know that, but i'm only working in desktop app with electron.js. I'll try that you said me

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