Skip to content

Python program that uses various modules and APIs to create a voice-activated personal assistant.

License

Notifications You must be signed in to change notification settings

Rahul-Dahale/Chat-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Chat-Bot

This is a Python code for a voice-controlled personal assistant that can perform various tasks such as searching on Wikipedia, opening web pages, and responding to greetings.

To use this code, follow the below steps:

Install the required packages:

  1. Wikipedia API: pip install wikipedia
  2. Speech Recognition: pip install SpeechRecognition
  3. PyAudio: pip install pyaudio
  4. Pyjokes: pip install pyjokes
  5. Random Facts: pip install randfacts
  6. win32com: pip install pypiwin32 Copy the code and save it as a Python (.py) file.

Run the code using a Python interpreter.

When you run the code, it will prompt you to speak something. You can speak any command such as "open youtube" or "who is Albert Einstein?".

The program will recognize your voice command and execute the corresponding action.

Note: Make sure your computer has a microphone and speaker to use this program. Additionally, you may need to adjust the code to suit your operating system, microphone settings, and preferred search engine.

How you can use this code:

First, make sure you have all the necessary packages installed. You can install the required packages using pip command.

Copy and paste the code into a file named virtual_assistant.py.

Run the code in a Python environment.

Once the program is running, it will ask you to speak something.

You can ask the assistant to do the following things:

  1. Search for information on Wikipedia.
  2. Open YouTube or Google.
  3. Open WhatsApp web.
  4. Ask it how it's doing or what its name is.
  5. Say hello to the assistant.
  6. The program will recognize your voice commands and respond accordingly.

Here is an example conversation you can have with the virtual assistant:

User: "Hey, what's your name?"
Assistant: "My name is Bumble B."

User: "What can you do for me?"
Assistant: "I can search for information on Wikipedia, open YouTube or Google, and open WhatsApp web."

User: "Can you open YouTube for me?"
Assistant: "Here you go to Youtube"

User: "How are you doing today?"
Assistant: "I am fine. How are you?"

User: "Can you tell me about Albert Einstein?"
Assistant: "According to Wikipedia, Albert Einstein was a German theoretical physicist who developed the theory of general relativity."

About

Python program that uses various modules and APIs to create a voice-activated personal assistant.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages