This project is a simple voice assistant built using Python. It can perform various tasks like playing music from YouTube, telling the current time, fetching information from Wikipedia, telling jokes, and sending WhatsApp messages.
- Voice Recognition: The assistant uses the SpeechRecognition library to recognize voice commands.
- Text-to-Speech: It utilizes the pyttsx3 library to convert text to speech for responses.
- Task Execution: The assistant can execute tasks like playing music, fetching information, telling jokes, and sending WhatsApp messages based on voice commands.
- Wikipedia Integration: It can provide brief information about a person or topic by fetching data from Wikipedia.
- YouTube Music Player: The assistant can play songs from YouTube using the pywhatkit library.
- Python 3.x
- SpeechRecognition library (
pip install SpeechRecognition
) - pyttsx3 library (
pip install pyttsx3
) - pywhatkit library (
pip install pywhatkit
) - Wikipedia library (
pip install wikipedia
) - pyjokes library (
pip install pyjokes
)
-
Clone the repository:
https://github.com/rajsrm2021/Voice-Assistant-Alexa.git
-
Navigate to the project directory:
cd Voice-Assistant-Alexa
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the script:
python main.py
-
Start speaking commands prefixed with "Alexa".
- Play [song_name]: Plays the specified song from YouTube.
- Time: Tells the current time.
- Who [person_name]: Provides a brief summary of the specified person from Wikipedia.
- Date: Responds humorously about having a boyfriend.
- Are you single?: Responds humorously about being in a relationship with Wi-Fi.
- Joke: Tells a random joke.
- Send message: Sends a WhatsApp message. It will prompt for the recipient and the message.
demo.-.Made.with.Clipchamp.mp4
- Raj Kumar Jaiswal
- GitHub: Your GitHub Profile