Sunday 27 March 2022

P#17. Tom..

 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

Making Prompts for Profile Web Site

  Prompt: Can you create prompt to craft better draft in a given topic. Response: Sure! Could you please specify the topic for which you...