This is a simple Alexa Voice Assistant built using Python. The assistant can listen to your voice commands and perform a variety of tasks such as playing songs, providing the current time, fetching information from Wikipedia, telling jokes, and more. 🎙️
- Recognizes voice commands using speech_recognition
- Responds to queries using pyttsx3 for text-to-speech
- Plays YouTube videos using pywhatkit
- Fetches summaries from Wikipedia
- Tells funny jokes using pyjokes
- Provides current time
- Friendly and humorous responses
Ensure the following libraries are installed:
-
speech_recognition
-
pyttsx3
-
pyaudio
-
pywhatkit
-
datetime (built-in)
-
wikipedia
-
pyjokes
-
sys (built-in)
-
Clone or download the project files.
-
Open a terminal and navigate to the project folder.
-
Run the script using:
python alexa_assistant.py
-
Say "Alexa" followed by your command when prompted.
Here are some sample commands you can use:
🎵 Play a song:
-
"Alexa, play a song"
-
"Alexa, play Shape of You"
🕒 Get current time:
- "Alexa, what time is it?"
📖 Get information:
- "Alexa, who the heck is Albert Einstein?"
😂 Tell a joke:
- "Alexa, tell me a joke"
💔 Funny response:
- "Alexa, are you single?"
🛑 Stop the assistant:
- "Alexa, stop"
Feel free to contribute to this project or report any issues.