Skip to content

ayuzhjha/XARVIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 

Repository files navigation

πŸ€– XARVIS: Your Personal AI Voice Assistant

Python Windows Voice Assistant Status

πŸ’¬ β€œGood Morning, Boss!” – A voice-activated assistant powered by Python, speech recognition, and LLaMA 2 via Ollama.


🧠 Features

  • ⏰ Dynamic time-based greetings
  • 🌀 Real-time weather reports
  • πŸ“° Latest news headlines
  • 🧏 Speech recognition (Google API)
  • πŸ”Š Text-to-speech (TTS) using pyttsx3
  • 🧠 LLaMA 2 chat integration via ollama
  • βš™οΈ Auto-run on Windows startup (optional)

πŸš€ Setup Instructions

1. Clone the Repo

git clone https://github.com/ayuzhjha/XARVIS.git
cd XARVIS

2. Install Dependencies

Make sure Python 3.10+ is installed. Then:

pip install requests pyttsx3 SpeechRecognition pyaudio ollama

⚠️ On Windows, install pyaudio via a .whl if pip fails:
Download from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio


🧠 Installing Ollama & LLaMA Models

  1. Download and install Ollama

  2. Pull the base LLaMA model

ollama pull llama2


## πŸ”‘ API Keys Setup

Replace the placeholders in the script with your actual keys:

```python
weather_api_key = "YOUR_OPENWEATHERMAP_API_KEY"
news_api_key = "YOUR_NEWSAPI_KEY"
location = "Your City"

πŸ§ͺ How to Use

Run the assistant:

python JARVIS1.2.py
  • XARVIS will:
    • Greet you based on the time
    • Tell the current time
    • Announce the weather and news
    • Ask: β€œI am ready to assist you. Please ask me anything.”
  • Respond by speaking into your mic.
  • Say "exit" or "bye" to end the session.

βš™οΈ Enable Auto-Start on Boot (Optional)

The script uses Windows registry to add itself to startup:

add_to_startup()  # Already called in main

To disable it, remove the "JARVIS" key manually from:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

🧠 Behind the Scenes

Module Role
speech_recognition Voice to text
pyttsx3 Text to voice
ollama Chat interaction via LLaMA 2
requests Weather + News API calls
winreg Adds to startup

⚑ Future Upgrades

  • GUI support with PyQt or Tkinter
  • Custom voice personas
  • File search & automation features
  • Voice-controlled system commands

πŸ‘¨β€πŸ’» Author

Made by Ayush Jha (A.J.)
πŸ› οΈ Division: XAEZOR β†’ XARVIS (AI Assistant)
πŸ“« Reach out: GitHub


🧬 β€œPart of XAEZOR – a futuristic ecosystem where intelligence meets automation.”

About

Desktop "Smart" Ai assistant

Resources

Stars

Watchers

Forks

Packages

No packages published