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

370
Views
Multiple languages in Web Speech Recognition in Javascript?

I have a JavaScript code here:

var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
var recognition = new SpeechRecognition();
recognition.onstart = function(){
    console.log("Started recording");
}
recognition.onspeechend = function() {
    recognition.stop();
}
recognition.onresult = function(event){
    var transcript = event.results[0][0].transcript;
    var confidence = event.results[0][0].confidence;
    console.log(transcript);
};
recognition.start();

It will work with all languages (I checked with English and Spanish). I can add language with recognition.language = "<langcode>" but I want to add two language to this:recognition.language = ["en-US","es-MX"] (English and Spanish) because sometimes it will mistake with another language.

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!