python speak

#from pywin32 module we can make read the sentences by the computer
from win32com.client import Dispatch
speak=Dispatch("sapi.spvoice")
speak.speak("harish is a champion in coding ")

#in function
def speak(str):
from win32com.client import Dispatch
speak = Dispatch("sapi.spvoice")
speak.speak(str)
if __name__=='__main__':
speak("jai ntr")

Comments

Popular posts from this blog

Steps taken by a compiler to execute a C program

Tokens in C

Variables and Data Types in C