A Python-powered virtual assistant capable of performing a variety of tasks such as opening websites, playing music, fetching news, telling jokes, searching on Google, and much more. Jarvis is activated by the wake word "Sydney" and responds to your voice commands intelligently. ποΈπ€
β¨ Features π» Web Navigation π Open Google, YouTube, LinkedIn, and other websites with simple voice commands.
π΅ Music Playback πΆ Plays your favorite songs using a predefined library.
π° News Fetching π Stay updated with top headlines fetched from reliable sources via NewsAPI.
π Wikipedia Search π Provides summaries of topics using Wikipedia.
π₯ YouTube Control β―οΈ Pause, play, mute, or search videos directly on YouTube.
π Joke Teller π€£ Brighten your day with jokes fetched from a joke API.
π€ Voice Interaction π£οΈ Fully voice-controlled, powered by SpeechRecognition and pyttsx3.
π± Currency Conversion (Future Scope) π΅ Placeholder for Forex functionality using forex-python.
π οΈ Installation π₯ Clone the Repository:
bash Copy code git clone https://github.com/yourusername/jarvis-ai-assistant.git cd jarvis-ai-assistant π¦ Install Dependencies: Ensure Python 3 is installed. Then, install the required libraries:
bash Copy code pip install speechrecognition pyttsx3 pyautogui forex-python wikipedia requests π Set Up NewsAPI:
Visit NewsAPI to generate your API key. Replace the placeholder API key (newsapi = "1744842a4c0f4eb69e078c97f97c86ff") in the script with your own. πΌ Music Library:
Create a musicLibrary.py file in the same directory. Define a dictionary of song names and URLs. Example: python Copy code music = { "song1": "https://example.com/song1", "song2": "https://example.com/song2" } π¦ How to Run β‘ Launch the Assistant: Run the script in your Python environment:
bash Copy code python jarvis.py π§ Activate with Wake Word: Say "Sydney" to activate the assistant.
ποΈ Give Commands: Once active, speak your commands, such as:
"Open Google" π "Play [song name]" πΆ "Tell me a joke" π "Search for Python tutorials" π π‘οΈ How It Works ποΈ Voice Recognition: Listens for the wake word using SpeechRecognition and processes voice commands.
π£οΈ Text-to-Speech: Responds audibly using pyttsx3.
π Command Handling: Executes commands based on your input:
Browsing the web π Playing music π΅ Fetching news π° Searching Wikipedia π βοΈ Error Handling: Handles exceptions gracefully, providing helpful feedback.
π οΈ Customization π€ Voice Settings: Modify the set_voice_to_female function to select different voices.
πΆ Music Library: Update the musicLibrary.py file with your favorite tracks.
β Additional Commands: Extend the processcommand function to add more features.
π§ Limitations
π Future Enhancements π Integration with smart home devices. π€ Advanced natural language processing with AI models. π Continuous listening for hands-free operation. π Credits Developed by Aryash Gupta. π© Contributions and feedback are always welcome! π