Share your repls and programming experiences

← Back to all posts
Text to speech API
RolandJLevy (649)

This simple Text-to-Speech app converts text into speech at the click of a button! 👇

Text-to-Speech 💬

Features 💡

  • Provides very human-sounding voices in 49 languages!
  • Delivers auditory information without any special hardware or software installation
  • Connects to the Text-to-Speech API with just a few lines of code
  • Language menu includes an emoji flag symbol for each language 🇯🇵 🇩🇪 🇨🇳 🇫🇷 🇪🇸 🇮🇹 🇷🇺 🇬🇧
  • Includes a random selection of five different language presets

Links 🔗

Reference 📙

RolandJLevy (649)

@OrangeJooce123 thanks! Glad you like it 😁

RolandJLevy (649)

@OrangeJooce123, I just added 5 presets to show examples of different languages :)

RolandJLevy (649)

@python88 thanks! It was really fun to make this one!

RolandJLevy (649)

Hi @ZDev1, thanks! Have you tried it in Arabic?

ZDev1 (695)

@rjlevy yea of course!
and it is so good!

RolandJLevy (649)

Hi @ZDev1, that's really great!

If you have some time, can you help me with a JavaScript issue I'm having with this Text-to-Speech?

I'm trying to execute the speak() function as the page loads. I've tried executing the function like this: <body onload="speak()"> but it doesn't work.

I've also tried using setTimeout in script.js but it doesn't work either.

Any idea why the speak() function can't run when the page loads? Thanks so much if you can have a look, but no problem if it's not possible. Roland

ZDev1 (695)

@rjlevy well I don't think to make a it when the page loads
because the function will speak, but it will speak nothing because the textarea value is null
so keep it onsubmit="speak();"
that's it