Alexa di Python
def speak(audio):
engine.say(audio)
engine.runAndWait()
def wishme():
hour = int(datetime.datetime.now().hour)
if hour>=0 and hour<12:
speak("good morning sir!")
elif hour>=12 and hour<18:
speak("good aternoon sir!")
else:
speak("Good Evening sir!")
speak("i am jarvis. how may i help you")
Healthy Horse