annyang
annyang copied to clipboard
ANNYANG RESTART
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.
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 how can i disable SpeechKITT?
@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 Yeah, i know that, but i'm only working in desktop app with electron.js. I'll try that you said me