Jarvis is a Python-based virtual assistant capable of handling voice commands to perform tasks like opening websites, playing music, fetching news, and interacting with OpenAI for general queries.
- Voice Activation: Activate Jarvis with the wake word "Jarvis."
- Web Browsing: Open popular websites like Google, YouTube, and Facebook via voice commands.
- Music Playback: Search and play songs from a predefined library.
- News Updates: Fetch and read the latest news headlines using NewsAPI.
- AI Integration: Responds to general queries using OpenAI's GPT-4.
- Text-to-Speech: Uses Google Text-to-Speech (gTTS) for audio responses.
- Speech Recognition: Uses
speech_recognition
library to convert voice to text. - Task Execution: Maps commands to actions via Python functions.
- Text-to-Speech: Generates audio responses dynamically using
gTTS
and plays them withpygame
. - News Fetching: Retrieves top news headlines using NewsAPI.
- Clone the repository:
git clone https://github.com/umarlhepk/Jarvis-Virtual-Assistant.git
Replace YOUR_NEWS_API_KEY and YOUR_OPENAI_API_KEY in the code.
python jarvis.py
Speak the wake word "Jarvis" to activate, then give your commands.
Save the content to a file named requirements.txt. Install the dependencies by running the following
pip install -r requirements.txt
Add more websites to the command list. Enable dynamic song search from online libraries. Support for multiple languages.
Python gTTS Pygame SpeechRecognition NewsAPI OpenAI GPT-4o