Can you please tell me why my microphone is not working ? When I made some correction in app.js file I can see microphone is blinking twice and then is death. I believe microphone is on. Any suggestion how to fix this problem ? Thank you
here is my code:
const msgEl = document.getElementById('msg')
window.SpeechRecognition = window.SpeechRecognition ||
window.webkitSpeechRecognition;
let recognition = new window.SpeechRecognition()
// start recognition
recognition.start();
function onSpeak(e) {
const msg = e.results[0][0].transcript;
console.log(msg)
}
recognition.addEventListener('result', onSpeak);