Talking TOM - Toy👶👶👶
import pyttsx3
yttsx3.init()
speak = input(input('I am Talking Tom, I will repeat whatever u say\n Enter some Text here!))
p1.say(speak)
p1.runAndWait()
p1.stop()
The above 5 line(s) of code is smart enough to say whatever you say. Please don't forget to install:
pip install pyttsx3 # text to speech library in python
Run:
I am Talking Tom, I will repeat whatever You say
Enter some Text here! 'Hello Nayan'
It will say Hello Nayan through your speaker. have fun !!!
No comments:
Post a Comment