Just A Really Very Intelligent System with Python
Yesterday while watching YouTube I saw a video in which Iron Man was talking to JARVIS, I thought that if Tony Stark can do it, why not me? At last I am also a programmer. So here I am after making JARVIS using Python. Source Code: import pyttsx3 import speech_recognition as sr import wikipedia import webbrowser import os # init pyttsx engine = pyttsx3.init("sapi5") voices = engine.getProperty("voices") engine.setProperty('voice', voices[1].id) # 1 for female and 0 for male voice def speak(audio): engine.say(audio) engine.runAndWait() def take_command(): r = sr.Recognizer() with sr.Microphone() as source: print("Listening...") r.pause_threshold = 1 audio = r.listen(source) try: print("Recognizing...") query = r.recognize_google(audio, language='en-in') print("User said:" + query + "\n") except Exception as e: print(e)