Be Ready

J.A.R.V.I.S. is coming soon today.
Here are the codes by which your J.A.R.V.I.S. can speak.
I have given my A.I. name 'Ethan' it's your choice what name would you like to give your A.I.



Python
First download Python 32-bit version (if you are in Windows 7) or download 64-bit version (if you are in Windows 10) from python.org, then click on download option, then click on (if you want to download 32-bit version) Download Python 3.8.5 in yellow box or the line 'Looking for Python with a different OS? Python for Windows, Linux/UNIX, Mac OS X', Other click on-

1.) Windows option (if you are in windows) or click on Linux/UNIX (if you use this operating system) or click on Mac OS X (if you use this operating system) or Other (if you use other operating system)

2.) Then (I'm telling for Windows) click on (Python 3.8.5 is latest version) 'Download Windows x86-64 executable installer' under top left column of Stable Releases.

3.) Now, wait for the Python Setup to install.

4.) Then run the Setup.



Visual Studio Code
V.S. Code is an IDE that I prefer you with multiple features in it. It also allows you to choose any language in it. 

1.) Open 'Google Chrome Browser' or any other Browser and 
2.) Type 'vs code download' and visit 1 website
3.) Then click on Windows option, then
4.) The latest version of V.S. Code will be installed on your P.C.


Now,
Make a new folder name 'Ethan' and open it. After opening it press 'Shift' + Right Click ('Shift' Key on keyboard and Right Click on Mouse) then choose option in Windows 10 or 'Open Command Prompt here' in Windows 10 earlier version(s) or in Windows 7, it opens then-                            
1.) type 'Python', 
2.) then type 'exit()', 
3.) then type 'pip' and 
4.) then type 'code .'

After this, V.S. Code will open and then press(on keyboard) 'Ctrl+`'(control button + ` button before 1 and below escape) will open Integrated Terminal.



Copy First Column,

Column 1
import pyttsx3
import datetime

engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voices', voices[1].id)


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!")
        
    elif hour>=12 and hour<18:
        speak("Good Afternoon!")
            
    else:
        speak("Good Evening!")

    speak("Hello Sir, I am Ethan. How can I help you in any way? Please tell me.")
 
Column 2
import pyttsx3  # type in Integrated Terminal 'pip install pyttsx3' this will install pyttsx3 module on your program
import datetime # this module is built-in module youi don't need to install it

engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voices', voices[1].id)


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!")
        
    elif hour>=12 and hour<18:
        speak("Good Afternoon!")
            
    else:
        speak("Good Evening!")

    speak("Hello Sir, I am Ethan. How can I help you in any way? Please tell me.")  # you can change name of your A.I to JARVIS to any other name of your choice 


  


Comments

Popular Posts