Skip to content

Dexter AI Assistant is a Python-based virtual assistant designed to respond to voice commands, perform various tasks, and provide information. Inspired by popular assistants like Siri and Alexa, Dexter aims to deliver a user-friendly and efficient experience.

Notifications You must be signed in to change notification settings

shashankssp12/Voice-Assistant-Dexter

Repository files navigation

Voice Assistant Project - Dexter

Dexter AI link: https://youtu.be/P6a-EPebzmg

Watch the Demo Video

Watch the video

Dexter AI Assistant

Dexter AI Assistant is a Python-based virtual assistant designed to respond to voice commands, perform various tasks, and provide information. Inspired by popular assistants like Siri and Alexa, Dexter aims to deliver a user-friendly and efficient experience.

Features

  • Voice Commands: Dexter can open applications, browse websites, play music, fetch news, and more through voice commands.
  • Text-to-Speech: Uses pyttsx3 for converting text responses to speech.
  • Speech Recognition: Uses speech_recognition to process and understand user commands.
  • API Integration: Integrates with the NewsAPI to fetch the latest news headlines.
  • Custom Responses: Uses OpenAI's GPT-3.5-turbo to generate responses for unrecognized commands.

What did I Learn?

  • API Integration: Learned how to integrate and fetch data from external APIs.
  • Environment Variables: Utilized environment variables to securely manage API keys and other sensitive information using the dotenv library.
  • Libraries Used:
    • speech_recognition: For capturing and recognizing speech.
    • pyttsx3: For converting text to speech.
    • webbrowser: For opening websites.
    • requests: For making HTTP requests to APIs.
    • dotenv: For managing environment variables.
    • OpenAI: For generating AI responses.

Ongoing Improvements

  • Web Scraping via Voice Commands: Working on the ability to scrape data from websites based on voice commands.
  • Enhanced Voice Recognition: Improving the speed and accuracy of voice recognition to reduce latency and increase responsiveness.
  • Setting Alarms: Adding functionality to set alarms and reminders through voice commands.

Getting Started

Prerequisites

  • Python 3.x
  • Pip (Python package installer)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/dexter-ai-assistant.git
    cd dexter-ai-assistant
  2. Install the required libraries:

    pip install -r requirements.txt
  3. Create a .env file in the project directory and add your API keys:

    NEWS_API_KEY=your_news_api_key
    OPENAI_API_KEY=your_openai_api_key
    

Running the Assistant

  1. Start the Dexter AI Assistant:

    python dexter.py
  2. Speak the trigger word "Dexter" followed by your command.

Example Commands

  • "Dexter, open VS Code"
  • "Dexter, play my favorite song"
  • "Dexter, what's the latest news?"

Contributing

Feel free to submit issues, feature requests, and pull requests. Contributions are welcome!

License

This project is licensed under the MIT License.

Contact

For any inquiries, please contact:

References:

  • Documentation pyttsx3 : link
  • Documentation speechRecognition : link
  • Docuemetation OpenAI API key setup: link

About

Dexter AI Assistant is a Python-based virtual assistant designed to respond to voice commands, perform various tasks, and provide information. Inspired by popular assistants like Siri and Alexa, Dexter aims to deliver a user-friendly and efficient experience.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages