Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Jarvis - AI Voice Assistant

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.



🎥 Demo Video

Watch the complete project demonstration on YouTube:

Watch the Demo


✨ Features

  • 🎙️ Wake word detection ("Jarvis")

  • 🗣️ Voice interaction using Speech Recognition

  • 🔊 Text-to-Speech responses

  • 🌐 Open popular websites

    • Google
    • YouTube
    • GitHub
    • LinkedIn
    • Facebook
    • Instagram
    • 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


🛠️ Tech Stack

  • Python 3.x
  • OpenAI API
  • SpeechRecognition
  • pyttsx3
  • PyWhatKit
  • Requests
  • python-dotenv
  • NewsAPI

📁 Project Structure

Jarvis/
│
├── main.py              # Main application
├── .env                 # API keys (not committed)
├── .gitignore
├── requirements.txt
└── README.md

⚙️ Installation

1. Clone the repository

git clone https://github.com/<your-username>/<repository-name>.git
cd <repository-name>

2. Create a virtual environment

Windows

python -m venv .venv

Activate it:

.venv\Scripts\activate

3. Install dependencies

pip install -r requirements.txt
if(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 pyaudio

🔑 Environment Variables

Create a .env file in the project root.

OPENAI_API_KEY=your_openai_api_key
NEWS_API_KEY=your_newsapi_key

▶️ Running the Project

python main.py

When the assistant starts, say:

Jarvis

It will respond:

Yes Sir

Then give your command.


🎤 Example Commands

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


📦 Required Python Packages

SpeechRecognition
pyttsx3
pywhatkit
requests
python-dotenv
openai
PyAudio

Install them using:

pip install -r requirements.txt

🔒 Security

This 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

🚀 Future Improvements

  • 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

🤝 Contributing

Contributions, suggestions, and feature requests are welcome.

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Push the branch
  5. Open a Pull Request

📜 License

This project is available under the MIT License.


👨‍💻 Author

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.

About

My personal AI assistant and it is integrated with openai API which can process any command it can open youtube , google , instagram, tell weather, tell time, tell about himself, it can joke and many more.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages