Skip to main content

Code #11 Speak Function

                GREETINGS TO ALL YOU!!!! This is text to speak converter Function from  win32com.client  import  Dispatch def   speak (str):     speak = Dispatch( "SAPI.spVoice" )     speak.Speak( str ) if  __name__  ==   "__main__" :     speak("# your text goes here")

Code #11 Speak Function

           GREETINGS TO ALL YOU!!!!

This is text to speak converter Function

from win32com.client import Dispatch

def speak(str):
    speak=Dispatch("SAPI.spVoice")
    speak.Speak(str)


if __name__ == "__main__":

    speak("# your text goes here")

Comments