Jarvis is a Python-based AI voice assistant inspired by assistants like Alexa and Google Assistant. It listens for the wake word "Jarvis", accepts voice commands, performs common tasks, and uses the OpenAI API to answer general questions intelligently.
Watch the complete project demonstration on YouTube:
-
🎙️ Wake word detection ("Jarvis")
-
🗣️ Voice interaction using Speech Recognition
-
🔊 Text-to-Speech responses
-
🌐 Open popular websites
- YouTube
- GitHub
- Personal Portfolio
-
🔍 Google search through voice
-
▶️ Play songs directly on YouTube -
📰 Fetch the latest news using NewsAPI
-
🕒 Tell the current time
-
📅 Tell today's date
-
🤖 AI-powered conversations using OpenAI GPT
-
❌ Exit with voice commands
- Python 3.x
- OpenAI API
- SpeechRecognition
- pyttsx3
- PyWhatKit
- Requests
- python-dotenv
- NewsAPI
Jarvis/
│
├── main.py # Main application
├── .env # API keys (not committed)
├── .gitignore
├── requirements.txt
└── README.md
git clone https://github.com/<your-username>/<repository-name>.git
cd <repository-name>Windows
python -m venv .venvActivate it:
.venv\Scripts\activatepip install -r requirements.txtif(requirements.txt is not available) then
pip install SpeechRecognition
pip install pyttsx3
pip install pywhatkit
pip install requests
pip install openai
pip install python-dotenv
pip install pyaudioCreate a .env file in the project root.
OPENAI_API_KEY=your_openai_api_key
NEWS_API_KEY=your_newsapi_keypython main.pyWhen the assistant starts, say:
Jarvis
It will respond:
Yes Sir
Then give your command.
- Open Google
- Open GitHub
- Open YouTube
- Search for Python tutorials
- Play Believer
- Tell me the time
- What is today's date?
- News
- Who are you?
- How are you?
- Stop
You can also ask any general question, and Jarvis will answer using OpenAI.
SpeechRecognition
pyttsx3
pywhatkit
requests
python-dotenv
openai
PyAudio
Install them using:
pip install -r requirements.txtThis project uses API keys stored in a .env file.
Never commit your .env file or API keys to GitHub.
Your .gitignore should contain:
.env
.venv/
__pycache__/
*.pyc
- Weather information
- Email sending
- WhatsApp messaging
- Music controls
- Desktop application launcher
- Volume and brightness control
- Reminder and alarm system
- Calendar integration
- AI memory
- Face recognition login
- System automation
- Chat history
- Offline speech recognition
Contributions, suggestions, and feature requests are welcome.
- Fork the repository
- Create a new branch
- Commit your changes
- Push the branch
- Open a Pull Request
This project is available under the MIT License.
Shailesh Maddhesiya
- Python and ML Developer
- AI & Machine Learning Enthusiast
- Full Stack Developer
If you found this project helpful, consider giving it a ⭐ on GitHub.
