Using a basic function, this works for me
import pyttsx3 def speak(text): engine = pyttsx3.init() engine.say(text) engine.runAndWait() speak('Hi there, what is your name?')The wishme function
def wishme(): engine hour = datetime.now().hour if hour < 24: engine.say('Good evening.') elif hour < 18: engine.say('Good afternoon.') else: engine.say('Good morning.') engine.say('How can I be of service?') engine.runAndWait()
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags