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

181
Views
Cross-browser speech recognition?

I'm trying to build a web search engine with Speech Recognition support, just like google.

So far, it works on Chrome but not on Firefox. I read from Mozilla's site that it doesn't properly support web speech API but how for instance google search and youtube works also on Firefox? Is there any 3rd party API/library for cross-browser support?

I enabled the following settings on firefox but still does not work.

about:config

media.webspeech.recognition.enable       => true
media.webspeech.recognition.force_enable => true

Here is what I've done and works on Chrome but not on Firefox. Am I doing it wrong?

var recognition = null;

if (window.hasOwnProperty('webkitSpeechRecognition') || window.hasOwnProperty('SpeechRecognition'))
    recognition = new webkitSpeechRecognition() || new SpeechRecognition();

if (recognition) {
    recognition.continuous = false;
    recognition.interimResults = false;
    recognition.lang = 'en-US';
    // recognition.maxAlternatives = 1;
    recognition.start();

    recognition.onresult = function (e) {
        document.getElementById('search').value = e.results[0][0].transcript;
        recognition.stop();
    };
    
    recognition.onerror = function (e) {
        console.log('failed!');
        recognition.stop();
    };
} else {
    alert('Your web browser does not support SpeechRecognition. Try Chrome.');
}
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!