TalAter / annyang

:speech_balloon: Speech recognition for your site
https://www.talater.com/annyang/
MIT License
6.57k stars 1.05k forks source link

ANNYANG RESTART #415

Open andresh0816 opened 4 years ago

andresh0816 commented 4 years ago

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 commented 4 years ago

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

andresh0816 commented 4 years ago

@The-Linguist how can i disable SpeechKITT?

The-Linguist commented 3 years ago

@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 commented 3 years ago

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