My Projects

 7.  A simple Talking Program

def speak(text:str or int)->None:
    """

    |USE THIS If You want The COMPUTER TO TALK TO YOU.(0nly works on Windows)|

    """

    from win32com.client import Dispatch

    speaker = Dispatch("SAPI.SpVoice")

    speaker.Speak(str(text))

l = ["Harry","Jerry","Noob","Hashim",]

if __name__ == "__main__":

    for person in l:

        speak(f"Shout Out To {person}")

        print(f"Shout Out To {person}")

# help(Dispatch("SAPI.SpVoice").Speak(""))

Comments

Popular posts from this blog

Advance Calculator Made For Mathematicans and Coders | Made with Python

My Projects

Functions Module