Skip to content

psavarmattas/PSMBot-Virtual-Assistant

Create your own virtual assistant with just a few lines code (Using only PYTHON)

Last Updated: February 05' 2022

Hello & Welcome to this git page. Here I just created my own virtual assistant with just a few lines of code. It is not an issue if you are a beginner, or an advanced coder this way of building your own virtual assistant is very simple and quick.

The only major thing required from your side is the will to go step by step with me and by the end of it you will have your own virtual assistant up & running as a charm.

To learn more about how I did it you can watch my YouTube video on this or click here.

Pre-Requisites:

  1. Python Interpreter (Like PyCharm)
  2. Python Environment (Like Anaconda)
  3. This git repo
  4. Bellow mentioned python packages:

-> speechrecognition

-> pyttsx3

-> pywhatkit

-> pyjokes

-> wolframalpha

  1. Basic knowledge of how Python works & computers work
  2. A will to explore
  3. Get API keys for the following to test your assistant yourself or just use the one I provide you with but it is better to use your API keys so that you don't bottle neck you assistant.

When all the above pre-requisites are there and ready you can start to work on your own virtual assistant. Please follow each and every step in order & if you have any error just go to the issues to see if you find any issue that matches your which is already resolved before opening an issues.

Steps:

For Windows users:

  1. Open PyCharm & create a new project with your virtual environment ready.
  2. Open the terminal and paste the command highlighted below:

pip install -r requirements.txt

Install this if necessary (Only when the code gives error)

pip install pyaudio

  1. Copy the code given in main.py (in this git) & you will have the code up & running on your pc. (Note: Creating two different files for weather & main you will have to import weather.py in the main.py file by using the import weather code in the main.py, therefore please make sure that the code for it is there or an error will be produced while running the weather command in the assistant.)
  2. If you want to learn how this code actually works the go watch my YouTube video for a better understanding.

For Linux/MacOs users:

  1. Learn all the above commands on terminal.
  2. Make sure to use pip3, because in linux pip refers for python2 and pip3 refers to python3.
  3. Install this too - pip3 install pyAudio.

Feature List (v2.0):

  1. Play videos on YouTube.
  2. Search google with your queries.
  3. Listen to jokes.
  4. Ask for the weather (Anywhere in the world).
  5. It can solve complex math problems for you.
  6. Ask it for today's date & time.
  7. Say "thanks" or "thank you" and the assistant will appreciate you.
  8. One command requirements install.

About

Here I will help you step by step to create your own virtual assistant with a lot of potential to grow. For more details go visit this YouTube video:

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published