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.
- 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.
- 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.
- 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.
- Python 3.x
- Pip (Python package installer)
-
Clone the repository:
git clone https://github.com/yourusername/dexter-ai-assistant.git cd dexter-ai-assistant
-
Install the required libraries:
pip install -r requirements.txt
-
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
-
Start the Dexter AI Assistant:
python dexter.py
-
Speak the trigger word "Dexter" followed by your command.
- "Dexter, open VS Code"
- "Dexter, play my favorite song"
- "Dexter, what's the latest news?"
Feel free to submit issues, feature requests, and pull requests. Contributions are welcome!
This project is licensed under the MIT License.
For any inquiries, please contact:
- Your Name: Shashank Shekhar Pandey
- Email: shashankspandey12@gmail.com