Problem with speech recognition API in electron
I was trying to create a bot using speech recognition web api and it works totally fine in browser. But when I run the same in electron.. still no errors. Everything loads and runs properly... But when I call the recognition.start(), it automatically calls the recognition.stop() method :( I searched this problem on Google and found someone with similar problem but no solution :( https://stackoverflow.com/questions/62501348/why-speech-recognition-works-in-web-page-but-in-electron-not My code goes smth like this const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition var recognition = new SpeechRecognition(); document.body.onclick = function() { recognition.start(); console.log('listening...'); } recognition.onresult = (data) => { console.log(data) } recognition.onend = () => { console.log("end") recognition.start() } // No error in the console but it keeps logging "end"