Skip to content

Python voice assistant capable of weather fetching, reminders, and music playing using speech recognition and text-to-speech.

Notifications You must be signed in to change notification settings

Amlakie-T/Python-Voice-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Python Voice Assistant

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.

Features

  • 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.

Setup

  1. 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
  2. API Keys

    • Sign up at OpenWeatherMap to get an API key.
    • Replace YOUR_OPENWEATHER_API_KEY in voice_assistant.py with your actual API key.
  3. 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."
  4. Author


This project is a Python voice assistant developed to handle various tasks through voice commands. Feel free to explore and contribute!

About

Python voice assistant capable of weather fetching, reminders, and music playing using speech recognition and text-to-speech.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages