2
respostas

o meu nao aparece nada quando eu falo

window.SpeechRecognition = window.SpeechRecognition || webkitSpeechRecognition;

 const recognition = new SpeechRecognition();
 recognition.lang = 'pt-br'
 recognition.start()

 recognition.addEventListener('result', onSpeak)

 function onSpeak(e) {
    consol.log(e)
 }
2 respostas

boa tarde! Matheus vc digitou errado o ''console.log(e)'' abaixo arrumei porem acho que se apenas arrumar lá já deve funcionar.

window.SpeechRecognition = window.SpeechRecognition || webkitSpeechRecognition;

const recognition = new SpeechRecognition();
recognition.lang = 'pt-br'
recognition.start()

recognition.addEventListener('result', onSpeak)

function onSpeak(e) {
   console.log(e)
}

Espero ter ajudado.

Bons estudos.