Artificial Intelligence In Python(Part-3)

Artificial Intelligence In Python(Part-3)


Code Is Here

import  pyttsx3
engine= pyttsx3.init()
engine.say("Hello I am Jhon How Are You Sir")
engine.runAndWait()
print("Helo ,Sir How Can I Help You")
A=input()
while True:
    if "hi"in A:
        print("Hello Sir")
        engine.say("Hello Sir")
        engine.runAndWait()
        break    elif "bye"in A:
        print("Bye-Bye Sir")
        engine.say("Bye-Bye Sir")
        engine.runAndWait()
        exit()

Thanks For Watching

No comments

Powered by Blogger.