-1

I have just create a on small application. Where user can login.

Now I would like to play sound like "Good Morning username" or "Good Afternoon username". I am able play mp3 file with if else as per time but not able to read a text.

Is it possible in HTML js or any other way on web?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
prashant.fepale
  • 547
  • 1
  • 8
  • 26
  • 1
    Possible duplicate of [Using Google Text-To-Speech in Javascript](https://stackoverflow.com/questions/15653145/using-google-text-to-speech-in-javascript) | The accepted answer is related to using Google Translate but the answer with the most votes is the good one. – yuriy636 Aug 07 '17 at 11:12
  • Here are some suggestions: https://stackoverflow.com/questions/1614059/how-to-make-python-speak – Fanka Bacheva Aug 07 '17 at 11:19
  • @FankaVasileva that's for Python, though. – yuriy636 Aug 07 '17 at 13:47

1 Answers1

0

You could use something like p5.js it has a load of libraries including p5.speech. This allows you to read text in a browser using javascript.

Sean
  • 1,444
  • 1
  • 11
  • 21