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
Post a Comment