How to make personal ai using python || Jarvish ai using python
CODE : import pyttsx3 #pip install wikipedia import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib engine = pyttsx3 .init( 'sapi5' ) #sapi5 is used for ai voice voices = engine .getProperty( 'voices' ) # print(voices[1].id) engine .setProperty( 'voice' , voices [ 0 ].id) #there are two ai voice 0 and 1 def speak ( audio ): engine .say( audio ) engine .runAndWait() def wishme (): speak ( "Hii,< YOUR NAME >" ) hour = int ( datetime . datetime . now (). hour ) if hour >= 0 and hour < 12 : speak ( "Good morning!" ) elif hour >= 12 and hour < 18 : speak ( "Good Afternoon!" ) else : speak ( "Good Evening!" ) speak ( "I am jarvish ai," ) ...