Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 5.55 KB

README.md

File metadata and controls

82 lines (58 loc) · 5.55 KB

JARVIS-AI-ASSISTANT

A true Artificial Intelligent Assistant with ALICE as backend and offline speech recognition with vosk engine and pyttsx3 as text to speech engine

Unlike other assistants, this JARVIS is truly an ai written with ALICE files which uses Lisp as background.

Any issues on downloading and using this assistant, feel free to raise an issue so I can look into the problem code. Please follow the below installation process to get it done nicely for your needs.

About JARVIS

Jarvis is actually an ai which was introduced in the first Iron Man movie. A very spohisticated AI for Tony Stark made programmers think about making their on AI Assistants. This JARVIS also got it's inspiration fro Iron Man movies.

JARVIS - JOEL'S ARTIFICIAL REALISTIC VIRTUAL INTERNET SERVICE"

There had been many different versions of my Jarvis in the past few months. First, it had been a text assistnat, then speech came and this version is my first every fully artificially intelligent jarvis program with AIML. This is completely written in Python and it is compatible with almost all systems (Mac OS, Linux and Windows(Recommended)). Being written in Windows, it is more suitable to be used in Windows. Some minor changes will be needed to run on other os.

See my first JARVIS project (text to speech only) - https://github.com/JoelShine/JARVIS-The-Ultimate-Project

See my second JARVIS initiative (speech recognition) - https://github.com/JoelShine/Jarvis-v2.0

Specialty of JARVIS

  • Fully autonomous with AIML and Lisp as the brain of JARVIS.
  • Support with offline speech recognition with the help of vosk models.
  • Offline Text to Speech service with pyttsx3.
  • More surer program launching mechanism.
  • Very powerful chat mode with ALICE files.

Setup Procedures

For getting JARVIS up and running, the instructions are given below :

Environment setup

Installing the required modules

  • First, navigate to this cloned repository and open cmd and then type :

pip install -r requirements.txt
  • Most of the times, you may run into an error saying 'no module named pyaudio'. If there is any error on installing SpeechRecognition, do check out this website. Please download the ".whl" file of pyaudio of your python version. Link to website - https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio . After downloading that, pip install that .whl file. For Eg:
pip install PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl
  • The above wheel is suitable for Python 3.8 version. amd64 means 64 bit and win32 means 32-bit. First pip install the wheel and then again run pip install -r requirements.txt . After all these procedures, we are ready to start testing out JARVIS.

Getting the models for our Speech Engine

  • Now, the next step is to download the models for our vosk speech Engine. Go to this website for downloading the model of your choice - https://alphacephei.com/vosk/models

  • There are models available for several accents of English and I am currently using the Indian Model. If you are in USA, you could download the usa-english model. The model is not uploaded on github as it will take up large space.
  • Once you have downloaded the Vosk speech engine model, then extract all the files inside the downloaded folder and copy the files inside the 'vosk_speech_engine/model' folder. Make sure to place this in the model folder inside vosk_speech_engine.
  • Once you have placed that, we can successfully run our JARVIS program

Running the Python script

Now we can run our python script. Just navigate to the cloned directory and open cmd and then type :

python jarvis.py

This will initialize the python program. If you run into any problems during the installation of any modules, feel free to open an issue. Thanks for supporting this project and happy coding !!