Answers for "best python text to speech library"

1

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")
Posted by: Guest on May-22-2021

Code answers related to "best python text to speech library"

Python Answers by Framework

Browse Popular Code Answers by Language