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

177
Views
Get word being read in speech synthesis utterance?

So I have been trying to get this for a thing I am doing but couldn't find any good tutorials on it or questions on it here. All I found was people finding out how to highlight the text with a textarea. In my code the last two params for the function are for the text that displays the current text that is being read.

function speak(text, speed, displaytext, idoftexttodisplay) {
    let realspeed = undefined

    if (speed) {
        realspeed = speed
    } else {
        realspeed = 1
    }

    let speech = new SpeechSynthesisUtterance(text)
    speech.lang = "en"
    speech.rate = realspeed
    speechSynthesis.speak(speech)
}
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!