Skip to main content
my python programs
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
July 28, 2020
speech synthesis in python
Speech synthesis
import win32com.client as wincl
speak=wincl.Dispatch("SAPI.SpVoice")
print("Enter q to quit")
while True:
t=input("Enter text: ")
if t=='q' or t=='Q':
break
speak.Speak(t)