GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yanqian/hey-jarvis: A local-first macOS voice assistant with Hey Jarvis wake-word detection, OpenAI Realtime conversations, BYOK, and locked-screen Smart Speaker Mode.

BranchesTags
Open more actions menu

Latest commit

 

History

117 Commits
117 Commits

Folders and files

NameName
Last commit message
Last commit date
.agent-harness
.agent-harness
 
 
app
app
 
 
artifacts
artifacts
 
 
assets
assets
 
 
docs
docs
 
 
evals/realtime
evals/realtime
 
 
feedback
feedback
 
 
packaging
packaging
 
 
scripts
scripts
 
 
spikes
spikes
 
 
src
src
 
 
tests
tests
 
 
tmp
tmp
 
 
var
var
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
DEPLOYMENT.md
DEPLOYMENT.md
 
 
MANUAL_TESTING.md
MANUAL_TESTING.md
 
 
README.md
README.md
 
 
SPEC.md
SPEC.md
 
 
init.sh
init.sh
 
 
requirements-vad.txt
requirements-vad.txt
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Hey Jarvis

Hey Jarvis is a developer-run macOS voice assistant. It listens locally for “Hey Jarvis”, answers through OpenAI, speaks through the Mac, and can handle safe local or provider-backed tools such as arithmetic, time, weather, exchange rates, and stock quotes.

The project has two voice backends:

Backend Best for Conversation model
Pipeline (default) Stable local development and debugging Wake → record → transcribe → answer → speak
Realtime (opt-in) Continuous, lower-latency conversation and barge-in Wake → WebRTC session with follow-up turns

Both are working MVP paths. A product-owned Tauri app and an unsigned Apple Silicon DMG can now be built for internal evaluation and public download. The DMG is explicitly not a general-purpose release: Developer ID signing, notarization, launch-at-login, automatic updates, and a distributable .app remain deferred.

Project goals

This project solves a personal hands-free need while preserving the CLI as the simplest interface. It is also an exercise in disciplined AI-assisted engineering, a job-portfolio case study, and a way to collect feedback from a small trusted group. Commercial defensibility is not a success criterion; the engineering decisions and evidence remain useful even if a platform later ships equivalent wake-word behavior.

Published milestone

Hey Jarvis has reached its first public product milestone: the Apple Silicon macOS voice assistant is published as an internal evaluation release, with the engineering story and feature demo available publicly.

  • Project story: Building Hey Jarvis
  • English feature demo
  • GitHub Release: v0.1.0 Internal Unsigned

The release is Apple Silicon-only, requires macOS 14 or later, uses BYOK, and is unsigned and not notarized. It is intended for internal evaluation, not as a general consumer distribution.

Requirements

  • macOS with microphone permission for the launching terminal
  • Python 3.11 or Python 3.12
  • macOS afplay and afinfo on PATH
  • an OpenAI API key
  • network access for installation and real OpenAI/provider calls

Realtime additionally launches a local Chrome app-mode host and needs one Enable voice assistant click per host launch.

Quick start

python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
test -f .env || cp .env.example .env

Set your key in .env:

OPENAI_API_KEY=sk-...

Prepare local audio assets and verify the machine:

python -m src.main --prepare-wake-word
python -m src.main --prepare-acknowledgement
python -m src.main --diagnose

Start the default pipeline:

python -m src.main

Say “Hey Jarvis”, wait for the acknowledgement, then ask a question.

To use Realtime instead:

python -m src.main --backend realtime

Click Enable voice assistant once in the Chrome window, then use the same wake phrase. Realtime audio and optional transcription are billable API usage. Before wake, audio remains local to the Python wake detector.

Useful commands

Command Purpose
./init.sh Compile, test, and run dependency-free recovery smoke paths
./scripts/build_internal_macos_release.sh Build and verify the Apple Silicon INTERNAL-UNSIGNED DMG
./scripts/generate_macos_icons.sh Rebuild the native app-icon family and transparent menu-bar template from SVG masters
python -m src.main --dry-run Verify the entry point without devices or APIs
python -m src.main --fake-backend Exercise the full pipeline state machine with fakes
python -m src.realtime.fake_smoke Exercise the Realtime lifecycle without browser, audio, or network
python -m src.main --diagnose Check local runtime readiness
python -m src.main --benchmark-acknowledgement Compare legacy and duration-bounded ACK player timing
python -m src.main --text "2 + 2" Inspect routing without microphone or OpenAI
python -m src.main --wake-debug Inspect live microphone levels and wake scores
python -m src.main --wake-file tmp/wake-debug.wav Replay a saved wake WAV

The CLI also supports --wake-debug-output, --prepare-wake-word, --prepare-acknowledgement, and bounded --benchmark-iterations. See the focused guides below before changing audio, VAD, Realtime, or provider settings.

The Mac app keeps the conversation window intentionally minimal. Open the secondary Settings presentation from its top-right button, the menu-bar icon, or ⌘,. Opening Settings keeps the current voice runtime and wake listening active; Done closes only the Settings window. Credential changes and an explicit microphone check safely stop the runtime and expose a focused Resume action. Credentials, microphone recovery, readiness, privacy-bounded support export, diagnostics clearing, and build information live in General, API Keys, Microphone, Privacy & Diagnostics, and About.

What it can do

The pipeline supports:

  • general knowledge answers from the configured chat model;
  • deterministic local time and safe arithmetic;
  • Open-Meteo weather;
  • Frankfurter reference-rate currency conversion;
  • Finnhub stock quotes when FINNHUB_API_KEY is configured;
  • Chinese or English replies based on the current request.

Realtime supports a continuous voice session, interruption, and the same six allowlisted functions: calculator, weather, local time, foreign exchange, stock quote, and spoken conversation ending.

Current/live facts are never guessed from model memory when a suitable provider is unavailable. General knowledge answers do not browse the web or claim that sources were checked.

Privacy and safety

  • Pre-wake microphone audio stays local.
  • .env, private voice fixtures, recordings, and local eval evidence are not intended for Git.
  • Default Realtime reports keep bounded lifecycle metadata and exclude API keys, SDP, raw audio, transcript text, and tool content.
  • The calculator uses a bounded parser, never eval.
  • Live Realtime and provider checks may use paid services. Run them only when you intend to use the microphone, network, and API quota.

Documentation

Start with the document matching your task:

  • Deployment — install, prepare, verify, run, and update.
  • Configuration reference — every .env setting and its ownership.
  • Pipeline guide — wake/record flow, tools, response policy, and diagnostics.
  • Realtime guide — browser handoff, privacy, controls, and evaluation commands.
  • Mac App architecture — native ownership, sidecar protocol, lifecycle, identity, and release freeze points.
  • Unsigned internal Mac testing — trusted install, privacy/cost, feedback, update, rollback, and uninstall workflow.
  • User guide — user-facing installation, first-run setup, daily operation, diagnostics, update, rollback, and uninstall instructions. 中文说明 is also available.
  • Portfolio case study — goals, architecture, failures, measured tradeoffs, and completion boundary.
  • Portfolio demo — privacy-safe 3:30 recording plan.
  • Completion record — measured readiness, unresolved limits, feedback, and explicit go/hold status.
  • Trusted trial evidence — structured feedback and release-blocker gate; it never publishes the unsigned DMG.
  • Troubleshooting — common failures and audio debug.
  • Project structure — where product code, tests, evaluations, artifacts, and runtime output belong.

Developer references:

  • Manual testing — detailed device acceptance cases.
  • Project specification — durable feature requirements.
  • Agent instructions — repository workflow for coding agents.

Development history, evaluator evidence, and orchestration state live under .agent-harness/, with run records in .agent-harness/runs/; they are intentionally not part of this landing page.

Recovery

From the repository root:

./init.sh

This verifies the harness, compiles Python, runs the full unit suite, and executes the pipeline and Realtime fake smoke paths without live devices, credentials, or provider calls.

About

A local-first macOS voice assistant with Hey Jarvis wake-word detection, OpenAI Realtime conversations, BYOK, and locked-screen Smart Speaker Mode.

Topics

apple-siliconchatgptmacosopenaipythonrealtime-apirustspeech-to-texttauritext-to-speechvoice-assistantwake-word

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.