Jarvis is a voice-controlled AI assistant implemented in Python. It leverages various libraries and APIs to understand voice commands, process natural language, and perform tasks such as web searches, opening websites, playing music, and interacting with the OpenAI GPT-3 model.
- Voice Recognition: Utilizes the SpeechRecognition library to capture voice input from the user.
- Natural Language Processing: Interacts with the OpenAI GPT-3 model for generating responses to user queries.
- Text-to-Speech Conversion: Employs the pyttsx3 library to convert text responses to speech.
- Web Search and YouTube Playback: Can open specified websites and search and play videos on YouTube based on user queries.
- System Information: Provides current time, date, and day.
- Camera Access: Opens the system's camera.
- Configuration: Allows customization through a configuration file (config.py).
-
Clone the repository:
git clone https://github.com/mannan-python-developer/Jarvis-AI-Assistant.git cd jarvis-ai -
Configure API keys:
Replace the placeholder API keys in
config.pywith your actual keys. -
Run the application:
python main.py
-
Voice Commands:
- Speak clearly and wait for Jarvis to respond.
- Use commands like "Jarvis, open YouTube," "Jarvis, play music," or "Jarvis, what's the time?"
-
Custom Commands:
- Edit the
siteslist inmain.pyto include your preferred websites.
- Edit the
-
Exit Jarvis:
- Say "Jarvis Exit" to terminate the application.
-
Reset Chat History:
- Say "reset chat" to clear the chat history.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.