Skip to content
← Back to Community
Text to speech API
Profile icon
RolandJLevy

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

Reference 📙

Voters
Profile icon
Progamer092
Profile icon
SGallaher
Profile icon
ZackJACKA
Profile icon
Kookiez
Profile icon
python88
Profile icon
zplusfour
Profile icon
LM2309
Profile icon
RolandJLevy
Comments
hotnewtop
Profile icon
Kookiez

cool!

Profile icon
RolandJLevy

@OrangeJooce123
thanks! Glad you like it 😁

Profile icon
RolandJLevy

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

Profile icon
Kookiez

@rjlevy
cool! :)

Profile icon
RolandJLevy

@OrangeJooce123
thanks! :D

Profile icon
python88

nice!

Profile icon
RolandJLevy

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

Profile icon
zplusfour

this is insane!

Profile icon
RolandJLevy

Hi

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

Profile icon
zplusfour

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

Profile icon
RolandJLevy

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

Profile icon
zplusfour

@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