L O A D I N G
blog banner

Tutorial on TTS

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:

Install gtts.

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")

Leave a Reply

Your email address will not be published. Required fields are marked *



shares