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")
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")
python text to speech
The best library because you dont have to save the
text file or open the file to start the speech
pip install pyttsx3
import pyttsx3
engine = pyttsx3.init()
engine.say("Hello world")
engine.runAndWait()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us