Skip to content

yashkhandelwal16/Jarvis-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

# 🧑‍💻 Jarvis Voice Assistant

Jarvis is a simple Python-based voice assistant that can listen to user commands, respond with speech, and perform tasks such as opening websites, fetching information from Wikipedia, telling the current date/time, and controlling system operations like restart or shutdown.

---

## 🚀 Features
- 🎙️ **Speech Recognition**: Converts spoken words into text using `speech_recognition`.
- 🔊 **Text-to-Speech**: Speaks responses back to the user using `pyttsx3`.
- 📅 **Date & Time**: Provides the current date and time.
- 🌐 **Web Browsing**: Opens websites like Google, YouTube, Instagram, Spotify, Chess.com, and more.
- 📖 **Wikipedia Integration**: Fetches summaries of topics directly from Wikipedia.
- 💻 **System Control**: Restart or shutdown your PC via voice commands.
- 🛑 **Exit Command**: Gracefully exits the assistant when asked.

---

## 🛠️ Technologies & Libraries Used
- `speech_recognition` → Converts speech to text.
- `pyttsx3` → Text-to-speech engine.
- `datetime` → Fetches current date and time.
- `webbrowser` → Opens URLs in the default browser.
- `wikipedia` → Retrieves summaries of topics.
- `os` → Handles system-level commands (restart/shutdown).
- `pyaudio` → Required for microphone input.

---

## 📋 Installation

1. Clone this repository:
   ```bash
   git clone https://github.com/your-username/jarvis-assistant.git
   cd jarvis-assistant
  1. Install dependencies:

    pip install speechrecognition pyttsx3 wikipedia pyaudio
  2. Run the program:

    python jarvis.py

🎮 Example Commands

Here are some commands you can try with Jarvis:

  • Greetings
    • Hello
  • Date & Time
    • Tell me the current date
    • Tell me the current time
  • Search
    • Search → Jarvis will ask what you want to search.
  • Wikipedia
    • Open Wikipedia
  • Websites
    • Open Google
    • Open YouTube
    • Open Instagram
    • Open Spotify
    • Open Chess
  • System Control
    • Restart
    • Shutdown
  • Exit
    • Exit or Quit

⚙️ How It Works

  1. Initialization:
    • Starts the speech engine (pyttsx3) and recognizer (speech_recognition).
  2. Listening:
    • Uses the microphone to capture voice input.
  3. Processing:
    • Converts speech to text via Google’s speech recognition API.
  4. Execution:
    • Matches the command with predefined actions and executes them.
  5. Response:
    • Speaks back the result using the text-to-speech engine.

📌 Notes

  • Ensure your microphone is properly configured.
  • Background noise may affect recognition accuracy.
  • Some commands (like restart/shutdown) require administrator privileges.

👨‍💻 Author

Developed by Yash Khandelwal
Second-year Computer Science & Engineering undergraduate, passionate about building real-world projects and exploring AI-powered assistants.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages