Skip to content

A smart Python-based voice assistant that responds to your commands, plays music, opens apps, manages tasks, sends emails, and more — your own personal Jarvis built from scratch!

Notifications You must be signed in to change notification settings

Divija-Arora/jarvis-diviai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

jarvis-diviai

📌 Description

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.

(Please refer Master Branch)

✨ Features

  • 🎙️ 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)

🛠️ Tech Stack / Technologies Used

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
📧 Email 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)

🚀 How to Run

  1. Clone the repository
    git clone https://github.com/Divija-Arora/jarvis-diviai.git
    cd jarvis-diviai
    
  2. Create virtual environment & activate it
    python -m venv env_jarvis
    env_jarvis\Scripts\activate  # On Windows
    
  3. Install dependencies
    pip install -r requirements.txt
    
  4. In user_config.py

Steps are shown below as well:

After clicking on the above link, you will be directed to the below page -

Screenshot (304)

Generate App Password -

Screenshot (305)

Create a new Secret-Key -

Screenshot (303)
  1. Enter the openai key

    Enter the required email and phone number in main.py.

  2. Run the assistant

    python main.py
    

📸 Demos

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.😊

🔐 AI/API Feature Notes

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

About

A smart Python-based voice assistant that responds to your commands, plays music, opens apps, manages tasks, sends emails, and more — your own personal Jarvis built from scratch!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published