J.A.R.V.I.S. is an advanced, natural-language desktop assistant designed exclusively for Windows. Inspired by the Stark Industries HUD from the Marvel Cinematic Universe, J.A.R.V.I.S. provides a central command layer on top of your operating system. Control your system, automate apps, search the web, manage media, and query a local AI brain using a combination of natural-language voice commands and keyboard input.
- Key Features
- System Architecture
- Prerequisites
- Installation & Setup
- Configuration
- Usage & Controls
- Voice Command Reference
- Troubleshooting
- 🎙️ Voice Pipeline (Offline & Local):
- Energy-based Voice Activity Detection (VAD) with auto-silence detection.
- Offline, high-accuracy Speech-to-Text (STT) utilizing OpenAI Whisper (base).
- Calm, deep-voice Text-to-Speech (TTS) utilizing pyttsx3 (SAPI5) with Windows thread synchronization.
- 🖥️ Frameless HUD overlay (PyQt6):
- Glassmorphic, transparent design that stays on top.
- Animated Arc Reactor status indicator (Idle, Listening, Processing, Speaking, Error).
- Real-time system stats (CPU, RAM, Disk) with circular ring gauges.
- Integrated bottom-bar text input field and
SENDbutton.
- 🧠 Local AI Integration (Llama 3.2):
- Runs 100% locally and offline via Ollama.
- Multi-turn conversational chat with context-preserving session memory.
- Assists in writing, rephrasing, code generation, and error debugging.
- ⚙️ Deep Windows System Control:
- App controls (Launch, Switch to, Close/Kill) using fuzzy matching (
fuzzywuzzy) and Windows Registry resolution (App Paths). - Window snapping (Maximize, Minimize, Left/Right Snap, Restore) via Win32 API.
- System volume and screen brightness adjustments.
- Security locks, sleep, restart, and shutdown with safety confirmations.
- App controls (Launch, Switch to, Close/Kill) using fuzzy matching (
- 🎵 Media & YouTube Auto-Playback:
- Failsafe media keys injection.
- Auto-starts Spotify or falls back to browser YouTube Music when inactive.
- Parses direct play songs (e.g.
"play Bohemian Rhapsody") and automatically starts playing the first result instead of showing lists.
- ⏰ Reminders & Timers:
- SQLite-backed background reminder scheduler.
- Supports relative parsing (e.g.,
"remind me in 30 minutes to check the build"). *Cross-platform Windows toast notifications and voice callouts.
J.A.R.V.I.S. is structured in decoupled, module-based layers:
graph TD
UI[Layer 8: PyQt6 HUD Window] -->|Text Input| Brain
Input[Hotkey Alt+J / Audio VAD] -->|Whisper STT| Brain[Layer 2: Intent Brain & Router]
Brain -->|Intent Category| Router[Command Router]
Router -->|Dispatch| Skills[Layer 3-7: Skill Modules]
subgraph Skills
Apps[Apps & Window Automation]
System[Volume, Brightness, Power]
Media[Media Keys & YouTube Auto-Play]
Web[Web Search & Weather wttr.in]
Reminders[SQLite Reminders & APScheduler]
end
Skills -->|Voice Payload| Speaker[Layer 1: pyttsx3 Speaker Thread]
- Layer 0: Foundation: Loads configurations (
settings.yaml+.env), directories, and establishes global logging. - Layer 1: Voice Pipeline: Controls mic-recording buffers and SAPI5 speaking queues.
- Layer 2: Core Brain: Parses phrasings against 80+ pre-compiled priority regex patterns, falling back to local Llama 3.2 for natural language queries.
- Layer 3–7: Skill Layers: Local system integrations (Win32, comtypes, sqlite3, requests).
- Layer 8: UI HUD: PyQt6 GUI loop running on the main thread, utilizing signals to update gauges and trigger states.
J.A.R.V.I.S. runs entirely locally. Ensure your system meets these requirements:
- OS: Windows 10 or Windows 11 (x64).
- Python: Python 3.8 to 3.14.
- Local LLM Engine: Ollama running on
http://localhost:11434.- Download the model:
ollama pull llama3.2(only 2.0 GB, highly efficient).
- Download the model:
- Hardware: An NVIDIA GPU with at least 4GB VRAM is highly recommended to accelerate the STT (Whisper) and LLM (Llama) components.
-
Clone the Repository:
git clone https://github.com/yourusername/jarvis-v1.git cd jarvis-v1 -
Set Up Virtual Environment (Optional but recommended):
python -m venv venv venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
Configure Environment Variables:
- Copy the example file:
copy .env.example .env - Open
.envand fill in API keys if you want to use weather, news, or exchange rate modules:WEATHER_API_KEY=your_openweathermap_key NEWS_API_KEY=your_newsapi_key EXCHANGE_API_KEY=your_exchangerate_key
- Copy the example file:
-
Verify Module Imports: Run the pre-flight verification script to ensure all compiled libraries and DLL dependencies load correctly:
python test_imports.py
Settings can be edited inside config/settings.yaml or customized directly within the HUD's gear settings window:
user:
name: "Sir" # How JARVIS addresses you
first_boot: false # Skip intro greeting after first run
voice:
enabled: true # Toggle voice output
speed: 175 # TTS speed (words per minute)
volume: 0.9 # TTS volume (0.0 to 1.0)
whisper_model: "base" # tiny | base | small | medium
activation:
hotkey: "alt+j" # Trigger voice command
text_hotkey: "ctrl+space" # Focus text box inputStart the application from your terminal:
python main.pyUpon startup, the Arc Reactor will spin up, staggered HUD panels will fade in, and JARVIS will speak the boot greeting: "All systems online. J.A.R.V.I.S. is ready, Sir."
- Voice Mode: Press
Alt + J(configurable) on your keyboard. Speak your command when the reactor glows green and displaysLISTENING. - HUD Text Mode: Click on the bottom command bar, type your command, and press
Enter(or clickSEND). - Terminal Mode: Alternatively, type commands directly into the running command line shell.
| Intent Category | Sample Phrases | Expected Action |
|---|---|---|
| Website Launch | "open youtube", "visit github.com" |
Opens default browser directly to target URL. |
| App Launch | "open chrome", "launch notepad" |
Resolves path via Registry App Paths and launches the application. |
| Song Playback | "play Bohemian Rhapsody", "play perfect" |
Scrapes YouTube, retrieves first video ID, and auto-plays song directly. |
| Failsafe Music | "play music" |
Simulates hardware keys, falls back to Spotify, or starts YouTube Music. |
| Window Snapping | "snap window left", "maximize window" |
Snap/resizes foreground window. |
| System Info | "what is my cpu usage", "system status" |
Live update display gauges + voice readout. |
| Volume Control | "mute", "volume up", "set volume to 80" |
Adjusts Windows main mixer level. |
| Reminders | "remind me in 10 minutes to take a break" |
Schedules SQLite reminder + fires Windows toast + voice alert. |
| Timers | "set a timer for 5 minutes" |
Starts background timer visible in HUD. |
| Power Control | "shut down", "reboot" |
Locks PC or schedules restart with voice confirmation flow. |
| AI Assitance | "write a python function to scrape a site" |
Opens code window in HUD and generates code using Llama 3.2. |
| AI Conversational | "let's talk", "end conversation" |
Switch between direct command mode and conversational context mode. |
Ensure you are launching the application using the same Python interpreter where the requirements are installed. Run pip list to check, or reinstall using python -m pip install -r requirements.txt.
COM objects must be initialized in secondary threads. JARVIS calls pythoncom.CoInitialize() at the startup of the speaker thread to prevent voice locking. If issues persist, verify that your default audio playback device is properly connected and active.
Verify that the Ollama application is active in your system tray and that you have pulled the model (ollama run llama3.2).
Developed with ❤️ as a local Windows companion. Just A Rather Very Intelligent System.