This week, I learned a lot of things, out of which, TTS amazed me. So, here’s a step by step tutorial that you can follow to write your own TTS python script:
pip install gtts
Decide what you want to hear.
text = "Hello, world!"
Use the library
speak = gTTS(text = text, lang = language, slow = False) speak.save("a.mp3")
Play it yourself or automate it, that’s up to you!
import os os.system("play a.mp3")
Neel Adwani (or neeltron) is your friendly neighborhood techie, a coder, traveler, stargazer and as you all know, a blogger. He has an endless range of interests in a commendable number of fields. He is an introvert, so don’t mess with him. He’s open to suggestions and criticism, though.