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

305
Views
¿Cómo reconocer un audio usando webkitSpeechRecognition?

Necesito reconocer un audio, que recogí allí, pero la librería solo usa micro. ¿Cómo evitarlo y corregirlo? Y si es simplemente imposible, ¿pueden sugerirme alguna otra biblioteca para hacer eso?

Así que tengo este código js :

 function runSpeechRecognition() { // get output div reference var output = document.getElementById("output"); // get action element reference var action = document.getElementById("action"); // new speech recognition object var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition; var recognition = new SpeechRecognition(); // This runs when the speech recognition service starts recognition.onstart = function() { action.innerHTML = "<small>listening, please speak...</small>"; }; recognition.onspeechend = function() { action.innerHTML = "<small>stopped listening, hope you are done...</small>"; recognition.stop(); } // This runs when the speech recognition service returns result recognition.onresult = function(event) { var transcript = event.results[0][0].transcript; var confidence = event.results[0][0].confidence; output.innerHTML = "<b>Text:</b> " + transcript + "<br/> <b>Confidence:</b> " + confidence*100+"%"; output.classList.remove("hide"); }; // start recognition recognition.start(); }

y esta página html:

 <!DOCTYPE html> <html> <head> <style> --- </style> <title>JavaScript Speech to Text</title> </head> <body> <h2>JavaScript Speech to Text</h2> <p>Click on the below button and speak something...</p> <p><button type="button" onclick="runSpeechRecognition()">Speech to Text</button> &nbsp; <span id="action"></span></p> <div id="output" class="hide"></div> <script src='some.js'> </script> </body> </html> </html>
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!