Skip to content

hitaishi-goel/Voice_Assistant_using_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Voice_Assistant_using_Python

# Alexa Voice Assistant

Alexa Voice Assistant is a simple Python voice assistant program that allows you to interact with your computer using voice commands. You can use it to perform various tasks, such as playing music on YouTube, checking the time, getting information from Wikipedia, telling jokes, and even fetching and reading out the latest news headlines.

## Prerequisites

Before running the Alexa Voice Assistant, ensure that you have the following prerequisites installed:

- Python 3.x
- Required Python packages (install them using `pip`):
  - speech_recognition
  - pyttsx3
  - pywhatkit
  - wikipedia-api
  - pyjokes
  - requests

You can install the required packages by running:

```bash
pip install speech_recognition pyttsx3 pywhatkit wikipedia-api pyjokes requests

Getting Started

  1. Clone or download the Alexa Voice Assistant repository to your computer.

  2. Navigate to the project directory:

cd Alexa-Voice-Assistant
  1. Run the voice assistant program:
python voice_assistant.py
  1. Once the program is running, you will see the message "Alexa here." This means the voice assistant is ready to listen to your commands.

Available Commands

  • Play Music: Say "Alexa, play [song name]" to play the specified song on YouTube.

  • Check Time: Ask "Alexa, what's the time?" to get the current time.

  • Get Information: Say "Alexa, tell me about [topic]" to get information from Wikipedia about the specified topic.

  • Telling Jokes: You can ask for a joke by saying "Tell me a joke" or "Tell me a funny joke."

  • Latest News: To fetch and read out the latest news headlines, say "Alexa, news."

  • Other Commands: Alexa can respond to various other commands. Experiment and have fun!

Note

  • The voice assistant uses the News API to fetch news headlines. You need to replace 'YOUR_API_KEY' in the voice_assistant.py file with your actual News API key.

  • Please respect usage policies and terms of service for any external services or APIs you use with this voice assistant.

Contributing

Contributions are welcome! If you have any ideas for improving or extending this voice assistant, feel free to create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages