Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

217
Visualizações
webkitSpeechRecognition aborting and not listening to anything unless I restart Chrome

I've started to make a little speech recognition app

let loading = document.getElementById('loading')
let main = document.getElementById('main')
let speech = new webkitSpeechRecognition();

let isLoading = true

speech.addEventListener('error',(e)=>{
  switch(e.error){
    case 'not-allowed':
      // Visual code here left out
      break;
    default:
      console.error(e)
      break;
  }
})

speech.addEventListener('end',()=>{
  speech.start();
})

function parseResult(result){
  if(result.type == 'result'){
    let text = result.results[result.resultIndex][0].transcript
    
     // Visual code here left out
    
  }
}

speech.onresult = parseResult;
speech.continuous = true;
speech.start();

And it works well once, then once I refresh it throws this every 5 seconds or so:

This is fixed by going to chrome://restart, but I would like it if users didn't have to restart their entire browser every time they went to the app.

Any idea of what's happening?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda