Answers for "how to make the computer read text python"

3

text to speech to specific language python

from gtts import gTTS
from playsound import  playsound

mytext="Hello Geek! How are you doing??"
language='en'
myobj=gTTS(text=mytext,lang=language,slow=True)
myobj.save("welcome1.mp3")
playsound("welcome1.mp3")
Posted by: Guest on July-19-2020
0

how to make python speak

from win32com.client import Dispatch

speak = Dispatch("SAPI.SpVoice")

speak.Speak("Ciao")
Posted by: Guest on March-26-2020

Code answers related to "how to make the computer read text python"

Python Answers by Framework

Browse Popular Code Answers by Language