annyang icon indicating copy to clipboard operation
annyang copied to clipboard

ANNYANG RESTART

Open andresh0816 opened this issue 4 years ago • 4 comments

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.

andresh0816 avatar Feb 29 '20 17:02 andresh0816

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

The-Linguist avatar May 09 '20 04:05 The-Linguist

@The-Linguist how can i disable SpeechKITT?

andresh0816 avatar May 09 '20 05:05 andresh0816

@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.

The-Linguist avatar Jul 20 '20 21:07 The-Linguist

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

andresh0816 avatar Jul 20 '20 22:07 andresh0816