how to make tts python code example
Example: python tts
from gtts import gTTS
# ask for text to speak
text = input("enter text to speak: ")
# generate tts
output = gTTS(text=text, lang="en", tld="co.in")
output.save(f"tts.mp3")
from gtts import gTTS
# ask for text to speak
text = input("enter text to speak: ")
# generate tts
output = gTTS(text=text, lang="en", tld="co.in")
output.save(f"tts.mp3")