This Python script implements a voice assistant similar to Alexa, capable of performing tasks like fetching weather information, setting reminders, and playing music from YouTube.
- Speech Recognition: Converts spoken commands into text using the
speech_recognition
library. - Text-to-Speech: Converts text responses into spoken words using the
pyttsx3
library. - Weather Information: Retrieves current weather details for any city using the OpenWeatherMap API.
- Reminders: Sets reminders for tasks that alert after a specified duration.
- Music Player: Searches and plays music from YouTube based on user commands.
-
Installation
-
Clone the repository:
git clone https://github.com/Amlakie-T/Python-Voice-Assistant.git cd Python-Voice-Assistant
-
Install dependencies:
pip install -r requirements.txt
-
-
API Keys
- Sign up at OpenWeatherMap to get an API key.
- Replace
YOUR_OPENWEATHER_API_KEY
invoice_assistant.py
with your actual API key.
-
Usage
-
Run the script:
python voice_assistant.py
-
Start the voice assistant and speak commands like:
- "What's the weather in Ethiopia?"
- "Remind me to call Amlakie in 30 minutes."
- "Play music Despacito."
-
-
Author
- Developed by Amlakie-T
This project is a Python voice assistant developed to handle various tasks through voice commands. Feel free to explore and contribute!