# 🧑💻 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-
Install dependencies:
pip install speechrecognition pyttsx3 wikipedia pyaudio
-
Run the program:
python jarvis.py
Here are some commands you can try with Jarvis:
- Greetings
Hello
- Date & Time
Tell me the current dateTell me the current time
- Search
Search→ Jarvis will ask what you want to search.
- Wikipedia
Open Wikipedia
- Websites
Open GoogleOpen YouTubeOpen InstagramOpen SpotifyOpen Chess
- System Control
RestartShutdown
- Exit
ExitorQuit
- Initialization:
- Starts the speech engine (
pyttsx3) and recognizer (speech_recognition).
- Starts the speech engine (
- Listening:
- Uses the microphone to capture voice input.
- Processing:
- Converts speech to text via Google’s speech recognition API.
- Execution:
- Matches the command with predefined actions and executes them.
- Response:
- Speaks back the result using the text-to-speech engine.
- Ensure your microphone is properly configured.
- Background noise may affect recognition accuracy.
- Some commands (like restart/shutdown) require administrator privileges.
Developed by Yash Khandelwal
Second-year Computer Science & Engineering undergraduate, passionate about building real-world projects and exploring AI-powered assistants.