Jarvis - Diviai is a desktop-based personal voice assistant built using Python. It performs tasks such as playing music, responding to voice commands, searching Wikipedia or Google, managing a to-do list, sending WhatsApp messages, and more.
This project also includes integrated AI features like natural language conversation (ChatGPT API) and image generation. However, due to paid API restrictions, these features are currently commented out. The code is ready and functional for anyone with access to premium API keys to enable them.
- 🎙️ Speech recognition and voice responses
- 📅 Tell current date and time
- 🎵 Play music or bhajans on YouTube
- 📖 Search content using Wikipedia or Google
- 📝 Manage To-Do list (add, speak, or show tasks)
- 📲 Send WhatsApp messages using
pywhatkit
- 📧 Send emails using SMTP
- 🙋 Respond to basic questions like "How are you?" or "Who are you?"
- 🔊 Understand and respond in Hindi using translation
- 💡 Personalized as Diviai – Divija Arora's voice assistant
- 🤖 ChatGPT-based conversation system (commented out)
- 🖼️ AI Image generation using prompts (commented out)
Category | Technology / Library |
---|---|
💬 Speech Synthesis | pyttsx3 |
🎤 Speech Recognition | speech_recognition , pyaudio |
🌐 Web Browsing | webbrowser , pywhatkit |
📚 Knowledge Base | wikipedia |
📝 Task Management | File handling (todo.txt ) |
🔔 Notifications | plyer |
smtplib , ssl |
|
📲 WhatsApp Messaging | pywhatkit.sendwhatmsg() |
🌐 Translation | mtranslate |
⌨️ Automation | pyautogui |
🤖 AI Chat (Optional) | openai (ChatGPT API - commented) |
🖼️ Image Gen (Optional) | openai (DALL·E API - commented) |
- Clone the repository
git clone https://github.com/Divija-Arora/jarvis-diviai.git cd jarvis-diviai
- Create virtual environment & activate it
python -m venv env_jarvis env_jarvis\Scripts\activate # On Windows
- Install dependencies
pip install -r requirements.txt
- In user_config.py
- Enter the gmail app password (this is not the gmail login password. You have to generate app password to send emails from python.)
- Follow following steps : https://itsupport.umd.edu/itsupport?id=kb_article_view&sysparm_article=KB0015112
Steps are shown below as well:
After clicking on the above link, you will be directed to the below page -

Generate App Password -

Create a new Secret-Key -

-
Enter the openai key
Enter the required email and phone number in main.py.
-
Run the assistant
python main.py
-
- https://drive.google.com/file/d/13k1_-248IUHkOTU_A7r9b0WZi6NRuRl1/view?usp=drive_link
- Introductin of Jarvis - diviai.
-
- https://drive.google.com/file/d/1vbFVXr4aYtJ1JYA17YB_e9xEy9amWfdy/view?usp=drive_link
- Jarvis tells its Date of Birth.
-
- https://drive.google.com/file/d/15f4bn_Kz89KwfVix06DM1jTPpUtsPJdP/view?usp=drive_link
- Shows how Jervis sends a whatsapp message.
-
- https://drive.google.com/file/d/1oCtpfyM9zOkO4k6cxV3aqw-UdLBM2N5d/view?usp=drive_link
- Showing how it responds to special greatings.
-
- https://drive.google.com/file/d/1QwsyXG7xn32oXihs-Dl8BnBHT9JXxvrl/view?usp=drive_link
- Plays devotional music on YouTube.
-
- https://drive.google.com/file/d/16WpjVaIM5mIAp6o9vUTMJS0doW8yEW9A/view?usp=drive_link
- Plays random music via YouTube.
-
- https://drive.google.com/file/d/1DpZ0SEhlf6gHFjmNI7zkYax0KVXSEUxR/view?usp=drive_link
- Opens YouTube in the web browser.
-
- https://drive.google.com/file/d/1oSnX3dxK2Ba3ozhmhdgFHI78xqnoQhYO/view?usp=drive_link
- Responds with a random joke.
-
- https://drive.google.com/file/d/1Pbh3L9hZzVV2NbnDcYosApdPT-liBdhF/view?usp=drive_link
- Responds to general questions.
-
- https://drive.google.com/file/d/1JU2Vkv5s0mItgFXiq5ntdaerUkuwcQ7t/view?usp=drive_link
- Image generation was implemented , but the feature is temporarily disabled due to API access limitations.
-
- https://drive.google.com/file/d/1VYPBaE9hVbMhaBcSe8-2bvXPtRC_6ADO/view?usp=drive_link
- Gives answers using AI (feature works via commented OpenAI code).
The Image Generation and Ask AI Features are commented out (they are currently disabled due to paid API 😭), but you can easily access the code from my repo.😊
The assistant includes AI functionality such as:
- Asking Jarvis questions (ask ai)
- Generating images via text or speech
These are commented out due to OpenAI's API being paid. You can re-enable them by:
- Adding your OpenAI API key to user_config.py
- Uncommenting the relevant blocks in main.py and openai_request.py