# 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
-
Clone or download the Alexa Voice Assistant repository to your computer.
-
Navigate to the project directory:
cd Alexa-Voice-Assistant
- Run the voice assistant program:
python voice_assistant.py
- Once the program is running, you will see the message "Alexa here." This means the voice assistant is ready to listen to your 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!
-
The voice assistant uses the News API to fetch news headlines. You need to replace
'YOUR_API_KEY'
in thevoice_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.
Contributions are welcome! If you have any ideas for improving or extending this voice assistant, feel free to create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.