8000 GitHub - RiaanSFD/Jarvis · GitHub
[go: up one dir, main page]

Skip to content
RiaanSFDPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

111 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JARVIS — Local Touchscreen AI Assistant

JARVIS is a local-first Electron + React assistant built for a wall-mounted touchscreen panel. It listens for a wake word, answers out loud, controls WLED lighting, generates CAD, drives 3D printers, and runs entirely on your own hardware. No cloud account, no API key, nothing leaves the network.

The interface is designed for touch only: fixed panes, large targets, no draggable windows, no hover-only controls, and nothing that can end up off screen.

Local AI stack

Feature Default
Wake word openWakeWord hey_jarvis, fully offline
Chat / reasoning Ollama llama3.2:1b
Image understanding Ollama moondream:1.8b-v2-q2_K
Speech-to-text Faster-Whisper tiny.en, CPU INT8
Speech output OS TTS (pyttsx3)
Optional cloned JARVIS voice LuxTTS + local reference audio
Lighting WLED over the local JSON API
CAD generation Ollama llama3.2:1b + build123d
UI React + Electron, kiosk mode
Backend FastAPI + Socket.IO

Moondream is only invoked when a request actually refers to an image, camera, screen, screenshot, or visible object. Its Ollama keep-alive is short by default so an 8 GB PC does not keep both vision and chat models resident.

Quick start

1. Install prerequisites

On Windows:

Or via Chocolatey (if installed):

choco install python nodejs-lts git ollama -y

On macOS, also install PortAudio:

brew install portaudio

2. Clone and set up

Windows PowerShell:

mkdir C:\code
cd C:\code
git clone https://github.com/RiaanSFD/Jarvis.git
cd Jarvis
git checkout ollama-local-jarvis

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
npm install

Linux/macOS:

mkdir ~/code
cd ~/code
git clone https://github.com/RiaanSFD/Jarvis.git
cd Jarvis
git checkout ollama-local-jarvis

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
npm install

3. Download models

Before running, start Ollama (it runs as a background service after install).

Then cache the models:

python scripts/setup_local_ai.py

This pulls Ollama models (~2 GB), Faster-Whisper, and openWakeWord so "Hey Jarvis" works out of the box. Takes 5–10 min on a fast connection.

4. Start JARVIS

npm run dev

Opens on http://localhost:5173. The panel is kiosk-ready: fullscreen, no chrome, touch-optimized controls.

Configuration

Everything is configurable at runtime — there is no need to edit files or restart to change a model, a threshold, or a voice.

  • On the panel: the Setup tab, grouped into Assistant, Listening, Wake Word, Voice, Devices, Printing, Interface and System.
  • From your phone or laptop: http://<panel-ip>:8000/admin — the same settings with a real keyboard, which is far easier for addresses and model names. Printed to the console at startup, and disableable in Setup → System.

Settings are stored in backend/settings.json and applied live. .env only seeds the first run.

Notable options:

Setting Default Notes
Require wake word on Off means JARVIS answers anything it hears
Wake sensitivity 0.5 Lower triggers more easily, with more false alarms
Stay awake for 15 s Follow-up window after the wake phrase
Dim when idle on, 120 s Standby clock face; 0% brightness blanks the panel
Kiosk mode on Fullscreen, no window chrome. Restart to apply
Settings PIN blank Locks the Setup tab behind an on-screen keypad
Hand gesture control off Touchless pointer; also toggled by voice

Lighting (WLED)

The Lights tab discovers WLED controllers over mDNS and gives each one power, brightness, colour swatches and quick effects. Controllers can also be added by IP in Setup → Devices.

By voice:

  • "Hey Jarvis, turn on the desk light"
  • "Hey Jarvis, set the ceiling to warm white at 40 percent"
  • "Hey Jarvis, put all the lights on rainbow"
  • "Hey Jarvis, turn everything off"

Targets resolve by controller name (including partial names like "desk"), by IP, or with "all".

Voice commands beyond lighting

  • "Hey Jarvis, enable gesture control" / "disable gesture control"
  • "Hey Jarvis, what do you see?" (uses the camera + Moondream)
  • "Hey Jarvis, design a bracket 40mm wide" (CAD)
  • "Hey Jarvis, what's my printer doing?"

Kiosk behaviour

Built for an unattended panel:

  • Fullscreen kiosk with no window chrome, menu bar or right-click menu
  • The Python backend is restarted automatically if it dies, with backoff
  • A crashed renderer reloads itself
  • Display sleep is blocked so the app's own idle dimming is what you see
  • Ctrl+Shift+Q quits, for when a keyboard is attached

JARVIS voice dataset

The supplied dataset is:

https://www.kaggle.com/datasets/fotiemconstant/jarvis-dataset

It is downloaded locally and deliberately excluded from Git.

Install/configure Kaggle credentials, then run:

python scripts/import_jarvis_dataset.py

Or bootstrap models and the dataset together:

python scripts/setup_local_ai.py --with-dataset

The importer downloads the dataset, extracts a short local reference clip for voice cloning, builds data/jarvis_persona.txt from any dialogue examples, and keeps all of it out of the repository.

Optional cloned voice

The default uses OS TTS because it is the smallest option. For a cloned JARVIS-style voice, install the optional LuxTTS stack:

pip install -r requirements-voice-clone.txt

Then set the speech engine to lux (or leave it on auto) in Setup → Voice.

For the complete setup in one pass:

python scripts/setup_local_ai.py --with-dataset --with-voice-clone

Only use voice recordings you have permission or legal rights to use. Third-party audio is not redistributed in this repository.

Verify the local stack

python scripts/smoke_test_local_ai.py

That checks the required Python modules, Ollama connectivity, Llama 3.2 1B, and a generated Moondream image test. Add --voice to also produce a short cloned voice sample in data/jarvis_voice/smoke_test.wav.

Low-end PC profile

For an older CPU or an 8 GB RAM panel, start from the defaults and, in Setup:

  • Assistant: context 2048, max response tokens 192, vision keep-alive 30s
  • Listening: speech model tiny.en, 2 threads
  • Voice: engine system
  • Interface: dim when idle after 60–120 s

For stronger hardware, raise the context and output limits, switch the vision model to moondream for a better quantization, and move the voice clone onto the GPU with Voice → Clone device.

Architecture

Microphone
  |
  v
openWakeWord "hey jarvis"  ---- gate ----> Faster-Whisper tiny.en (CPU INT8)
                                              |
                                              v
                          Llama 3.2 1B via Ollama <---- Moondream (on demand)
                                              |
                                              +---- WLED lighting
                                              +---- Project/file tools
                                              +---- build123d CAD
                                              +---- Printer tools
                                              +---- Interface control
                                              |
                                              v
                              System TTS  OR  LuxTTS voice clone

The React frontend talks to backend/server.py over Socket.IO. backend/local_jarvis.py is the runtime; backend/settings_store.py is the single source of configuration for both the UI and the runtime.

Existing hardware features

  • build123d STL generation and iteration
  • OrcaSlicer / PrusaSlicer integration
  • Moonraker / OctoPrint printer control
  • MediaPipe hand tracking (optional touchless pointer)
  • Project-scoped files and conversation memory

Notes

  • Face authentication has been removed; the panel is not gated behind a camera lock. Use the settings PIN if you want the Setup tab protected.
  • Browser automation was built on Google Gemini Computer Use and is not part of the local tool set.
  • TP-Link Kasa support has been replaced by WLED.

More detail

See LOCAL_AI.md for model configuration, dataset behaviour, voice-clone setup, and performance tuning.

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0