Friday 1 July 2022

How To Create Jarvis Program in Python | Create Jarvis in 9 minutes

How To Create Jarvis Program in Python | Create Jarvis in 9 minutes
How To Create Jarvis Program in Python | Create Jarvis in 9 minutes In this short video, I'll show you how we can make our own Jarvis. In this program, we will implement text to speech and speech recognition. Using both libraries we can ask any question to our Jarvis or our program can reply using the text to speech method. in this program will ask for the current time. You can add a lot of things. Follow the following steps to create this program -: 1) Open VS code or any editor and save the file with .py extension (jarvis.py) 2) Import pyttsx3 Open terminal using ctrl+~ and type pip install pyttsx3 write below code. 3) run your program. still facing error try to install the missing module. comment your error i'll reply command to install that. ...........................Program Code................................ import pyttsx3 import speech_recognition as sr from datetime import datetime engine = pyttsx3.init() engine.say("Hello TCB, How can i help You") engine.runAndWait() now = datetime.now() current_time = now.strftime("%H:%M:%S") def takecommand(): command = sr.Recognizer() with sr.Microphone() as source: print("Listning....") command.adjust_for_ambient_noise(source) command.pause_thresold = 1 audio = command.listen(source) try: print("Recognizing....") query = command.recognize_google(audio,language="en-in") print("You said", query) if 'current time please' in query: engine = pyttsx3.init() engine.say(current_time) engine.runAndWait() except Exception as Error: return None return query takecommand() .......................................................................... Join this channel to get access to perks: https://www.youtube.com/channel/UCyNJURC5bvqIQ9vO9PBrYrA/join #python #pythonprogramming #createjarvis #pythonforbeginners #pythontutorial #artificialintelligence #texttospeech #thecodingbus #unitedstates
via YouTube https://www.youtube.com/watch?v=J7vPdzEzJJ8

No comments:

Post a Comment

😍Developer on Weekends #shorts #officememes #developermemes

😍Developer on Weekends #shorts #officememes #developermemes Welcome to the latest viral YouTube shorts meme for developers! 😍Developer on...