Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!