HERE shows deaf and hard-of-hearing people who is talking, what they said, how they said it, and where it came from. Captions attach to the person who said them, important sounds appear with their direction, and a haptic belt turns you toward sounds you'd otherwise miss.
This is the master README: idea, scope, rig, architecture, message contract, team, schedule, demo, and every decision made so far. Every sub-project's CLAUDE.md points here. If code and this README disagree, this README wins (or gets updated on purpose).
Markers: (tune) = starting value, adjust after testing. (spike) = must be confirmed by a test before others depend on it.
- The idea
- Prior work and how HERE differs
- Scope
- The three core moments
- The rig
- Architecture
- Network and the relay
- Coordinates and calibration
- Time
- Speed
- Sound direction: built-in DoA vs ODAS
- The contract
- Attribution
- The iPhone app
- Alerts
- The belt
- Extras (only after the gate)
- Sponsors and prizes
- Team and ownership
- Five-day plan
- Spikes
- Repo layout and conventions
- Judging: setup, demo, Q&A
- Risks
- Privacy
- Decisions log
- Open questions
Deaf and hard-of-hearing people miss more than words. They miss where a sound came from, who is speaking in a group, how something was said, and that something happened at all while they were looking away: a doorbell, their name being called.
Caption apps turn speech into text but don't say who said it or where they are. Sound-alert features say "doorbell" but not which way to turn.
HERE fuses a microphone array with a camera into one spatial picture of the room. Every sound and every visible person becomes something with a direction. Then:
| Output | What it gives the user |
|---|---|
| AR captions (iPhone, standing in for AR glasses) | What was said, by whom, how, floating above the person who said it |
| Rings | Thin colored circles around whoever or whatever is making sound |
| Top-right sound panel | What the sound is (doorbell, name called…) and a direction ring |
| Haptic belt | A buzz in the direction to turn |
The iPhone plays the glasses: its camera is the glasses' camera, its screen is the glasses' display, mirrored to a monitor for judges. The laptop is the hearing module.
- Everything becomes a direction in one shared coordinate system.
- The belt says direction, not information. Short patterns, never continuous buzzing.
- Commit fast, then refine. Show something instantly; let slower models fill in.
- Confidence is visible. Uncertain things look tentative.
- Don't overload. Rings are thin, captions stay above heads, focus mode hides background noise.
HERE puts captions on the person who said them and turns you toward sounds behind you: a microphone array, a camera, and a haptic belt working as one spatial awareness system for deaf and hard-of-hearing people.
We studied two projects and credit them in our submission. We do not copy code from either. Ranger's repository has no license, so it is reference reading only.
Ranger (TreeHacks): ReSpeaker array + Jetson + Whisper + YAMNet, shown as a sound radar on a Meta Quest. Beyond Hearing: ReSpeaker + transparent display + haptics on AR glasses; user research with deaf participants.
| Ranger | Beyond Hearing | HERE | |
|---|---|---|---|
| Sound direction | ✓ radar of icons | ✓ indicator on glasses | ✓ rings on the actual source in view |
| Sound type | ✓ | planned | ✓ focused alerts |
| Live transcription | ✓ loudest speech, 10 s windows | — | ✓ streaming, words as they're spoken |
| Captions on the right person (camera + audio fusion) | — | — | ✓ |
| Multiple speakers | future work | — | ✓ Person 1, 2, 3 |
| Tone (how it was said) | — | — | ✓ |
| Directional haptics | — | ✓ | ✓ 8-direction belt |
| Name called | — | — | ✓ |
Lessons we adopt:
- Hard-of-hearing users picture sound as a simple circle (Beyond Hearing): use clean rings, not complex visuals.
- Indicators should not block the view (Beyond Hearing).
- Users asked for an on/off or quiet mode to avoid overload (Beyond Hearing): we build focus mode.
- Bluetooth can be flaky in crowded spaces and power is tricky (Ranger): test BLE in a crowded room early; keep power simple.
Line for judges: "Earlier projects like Ranger showed sound direction is possible. HERE fuses direction with vision, so captions land on the right person, and the belt turns you toward them."
- Sound direction from the ReSpeaker XVF3800
- Streaming transcription (ElevenLabs Scribe Realtime, key in hand and measured; local faster-whisper as the automatic mid-session fallback and the default engine until Kori's live array check)
- Captions attached to the right person in the iPhone's camera view (Person 1, 2, 3), with tone
- Rings around the active speaker
- Top-right sound panel with direction ring, for doorbell and name called
- Haptic belt driven by the phone over Bluetooth
- Off-camera speech shown at the screen edge with a chevron
- Focus mode toggle
- Belt-only mode so judges can try the belt
- Liquid Glass styling (cheap natively; applied once captions land on the right person)
- Memory search finale
- Plain dashboard page
- More sound classes (dog barking, baby crying, TV, music) with rings on the source
- Further polish (animations, nicer direction ring)
- Core ML YOLO object detection for rings on dogs/TVs
- Jetson, Meta glasses, blind mode, type-to-speak
- Names on captions (we use Person 1, 2, 3)
Separating two people talking at the exact same time: done with the XVF3800's two focused beams + masking (laptop/audio/SPIKE.md, CHANGELOG 2026-10-08 late night); ODAS not needed- Facial recognition
These are what we rehearse until they work every time.
- Captions pop up over the right person. Person 1 and Person 2 talk; each line appears above whoever said it, with a ring around them and a tone chip.
- The turn-around. Someone speaks behind the wearer → belt buzzes toward them → wearer turns → their caption slides into view. This is the best moment. Make the line said behind them funny.
- Doorbell / name called from behind. Top-right panel shows "Doorbell" or "Name called" with a ring pointing back; belt pulses that direction.
Plus, for judges: "Close your eyes. Turn when you feel the buzz." (belt-only mode, section 14).
| Device | Role |
|---|---|
| iPhone 17 (chest mount, landscape, ultrawide lens) | The glasses: camera, face tracking, heading, attribution, AR rendering, belt control over BLE |
| Windows laptop (RTX 5000 Ada) | The hearing module: ReSpeaker, transcription, sound classification, alerts; sends events to the relay |
| ReSpeaker XVF3800 (on the desk, USB to the laptop) | Sound direction + clean audio. Its forward direction defines the world frame. |
| Vultr server (Atlanta region) | Relay between laptop and phone; later memory/search and dashboard |
| Haptic belt | ESP32 + ULN2803 + 8 coin motors + WS2812B ring + Anker power bank; quick-fit strap |
| Mac + monitor | AirPlay receiver for the phone (QuickTime over cable as backup) |
| Power bank in the harness | Keeps the phone charged (USB-C is free since mirroring is wireless) |
| Bluetooth speaker | Plays the doorbell on cue from a rehearsed position |
| Floor tape | Marks array, wearer and speaker positions for fast setup |
Spare phones: iPhone 16 = hot spare with the app installed. iPhone SE = presenter's remote (settings, calibrate). iPhone 15 Pro = second spare.
- Wearer stays within ~0.5 m of the array. It measures direction from where it sits. Speakers stand 1–1.5 m away in the loud hall, facing the array. Error ≈
atan(wearer_offset / speaker_distance). - Landscape + ultrawide fits two or three speakers. Remeasure HFOV in this exact setup.
- Heat: camera + vision + rendering + AirPlay + BLE. Power bank, no case, 1080p or 720p capture, thermal step-down, 20-minute test.
ReSpeaker ──USB──► Windows laptop (hearing module)
audio_here : sources (directions), speech flag, audio
speech_here : streaming transcription, tone, name detection
sound_here : doorbell (+ extras)
hub_client : builds events, sends to relay
│
│ wss (outbound)
▼
Vultr relay (Atlanta) ── extras: memory/search, dashboard
│
│ wss (outbound)
▼
iPhone 17 (the glasses)
camera + Vision faces + tracking
heading (CoreMotion quaternion)
attribution (direction → face)
AR: captions, rings, top-right panel, chevrons (Liquid Glass)
belt logic → CoreBluetooth ──BLE──► ESP32 belt
│
│ AirPlay (local)
▼
Mac → monitor for judges
| Laptop | Relay | iPhone |
|---|---|---|
| Reads ReSpeaker directions + audio | Forwards messages by type | Camera + preview |
Builds speech_start instantly |
Holds latest config |
Face detection + tracking |
Streams transcription → utterance |
Health endpoint | Heading |
| Tone, loudness, name-called | (extra) memory + search | Attribution (direction → person) |
Doorbell detection → alert |
(extra) dashboard page | AR rendering |
| Sends everything in world bearings | Belt: chooses motor and pattern, writes BLE |
- Laptop → relay → phone: what was heard, what was said, from which world direction. Small JSON. No audio and no video ever cross the network.
- Phone → relay (optional): heartbeat, attribution and scene, used only by the extras (memory, dashboard). The core works without them.
- The laptop never needs the phone's heading: the phone converts world bearings to body bearings itself, for both rendering and the belt.
Every device makes outbound connections to the relay, which campus Wi-Fi allows. No device-to-device networking, no router, no hotspot tricks.
- Small Python (
websocketsor FastAPI) or Node server on the cheapest Vultr instance, Atlanta region (closest to Alabama). - TLS required: iOS blocks plain
ws://to internet hosts. Put Caddy in front for automatic HTTPS; point a domain or a free hostname (e.g. sslip.io) at the server. - URL:
wss://<host>/ws?session=<session>&role=<role>&token=<token>session: e.g.demo, isolates rigs.role:laptop,phone,dashboard,memory,tool.token: shared secret from env; reject anything else.
- Routing: forward each message to every other client in the same session that subscribed to its
type(from theirhello). Default subscriptions per role are in section 12.10. - State: keep the latest
configper session and send it to new clients on connect. - No queues: if a client is slow, drop old messages for it rather than buffering.
GET /health→{ok, clients:[{role, connected_s}]}.- Logs every message as JSON lines (also our debug record).
- AirPlay phone → Mac. Needs the two to see each other locally: test on campus Wi-Fi early.
- Backup: cable phone → Mac, QuickTime → New Movie Recording → choose iPhone. Sharper than AirPlay; use it from the start if AirPlay is flaky.
- AirPlay delay doesn't matter; picture quality does. Mac at the monitor's native resolution.
- Campus Wi-Fi bad → phone hotspot carries everything (traffic is tiny), except AirPlay → use the cable.
- Internet down → whisper fallback for transcription, but the relay also needs internet. Local fallback relay: the same relay code runs on the laptop; the phone's settings switch the URL. Only works if devices can reach each other locally; test once.
- Vultr is never on the reflex path. The laptop publishes to the local relay (primary) and mirrors the identical
stream to the Vultr relay at the same time, each on its own connection and bounded outbox
(
laptop/client/fanout.py,relay.mirrors/HERE_RELAY_MIRRORS/--mirror). A dead or slow mirror never delays the local relay.demo-updoes this by itself whenlaptop/.envnames awss://relay. The phone tries the local relay first and falls back to the Vultr URL (one connection at a time, same stream on both); the cloud extras (memory, dashboards) read the Vultr copy.
World frame: degrees from the ReSpeaker's calibrated forward direction, clockwise positive viewed from above, range (-180, 180]. Fixed, because the array sits on the desk.
Body frame: relative to the wearer's torso front. The chest phone and the belt live here.
Heading: the world bearing the wearer faces. The phone computes it.
wrap(a) = ((a + 180) mod 360) - 180, mapped into (-180, 180]
relative_bearing = wrap(world_bearing - heading)
All laptop messages use world bearings. The phone does every conversion.
For an upright landscape frame of width W and horizontal field of view HFOV, camera pointing at heading:
f = (W / 2) / tan(HFOV / 2)
bearing(x) = heading + atan((x - W/2) / f)
pixel_x(b) = W/2 + f * tan(wrap(b - heading)) // on screen only if |wrap(b - heading)| < HFOV/2
Motors clockwise from the front: 1 Front, 2 Front-right, 3 Right, 4 Back-right, 5 Back, 6 Back-left, 7 Left, 8 Front-left.
rel = relative_bearing mod 360
motor = (round(rel / 45) mod 8) + 1
Never use CoreMotion's Euler attitude.yaw (a vertical phone gimbal-locks it).
CMAttitudequaternion/rotation matrix, reference frame.xArbitraryZVertical.- Back camera looks along device −Z; rotate
(0, 0, −1)into the reference frame. - Drop the vertical component;
atan2→heading_raw. heading = wrap(heading_raw - heading_offset).
| What | When | How |
|---|---|---|
| Array forward | Once, saved in audio config | Speak from directly in front of the array's marked front; reported angle = offset. Speak from the right to confirm clockwise. |
| HFOV | Once, saved in the app | Phone in the harness, landscape, ultrawide: two objects at the frame edges, measure their angle apart. |
| Heading zero | Every demo, < 10 s | Wearer at the tape mark facing the array's front, presenter taps Calibrate. |
| Check | Every demo, 10 s | Someone says "check" from Person 1's mark; the ring should land on them. |
- Laptop services timestamp with the laptop clock (Unix seconds, float). Every message carries
t= when the observation happened. - The phone doesn't need clock sync to display. For latency measurement it sends
clock_ping, the laptop answersclock_pongthrough the relay, and the phone estimates the offset. - Messages carry
stage_ms(time spent per stage) for the debug overlay.
Fast path (target ≤ 250 ms from sound to response): the laptop sends speech_start the moment the ReSpeaker sees speech start at a direction, before any words exist. The phone immediately rings the matched person, shows their caption box with a typing indicator, and buzzes the belt if they're not in front.
Slow path: transcription partials, final text and tone fill the box that's already there.
| Stage | Tactic | Target |
|---|---|---|
| Directions | Read at the device's max rate; short smoothing; send on change | tens of ms |
| Laptop → relay → phone | Persistent wss, Atlanta region, no batching, TCP_NODELAY |
~50–100 ms total |
| Phone → belt | BLE write-without-response; ESP32 owns pattern timing | tens of ms |
| Transcription | Stream partials: whisper re-run every 0.3–0.5 s on the current utterance; Scribe partials (measured on array_tts: first words 1.24 s, final 0.82 s after the line; GPU whisper 0.33 / 0.84 s) |
first words 0.3–0.7 s |
| Doorbell | 0.5–1 s classifier windows with overlap | ~0.5–1 s |
| Phone render | Apply on arrival; caption already anchored | one frame |
This is one of the biggest decisions. It's settled by a timeboxed head-to-head test, not opinion, and the contract (sources message) works with either, so switching costs nothing downstream.
| Built-in DoA (XVF3800) | ODAS | |
|---|---|---|
| Sources at once | Two (the focused beams, routed to USB ch 0/1: audio.capture: beams) |
Several, each tracked with an ID |
| Overlap / TV + person | Jumps or averages | Can follow both |
| Input | Works today on Windows | Raw mic channels required |
| Platform | Windows ✓ | Linux; on Windows only indirectly |
| Visualization | — | ODAS Studio (live sphere of tracked sources) |
| Status | Working (baseline), demo choice | Runs (raw mics, WSL2, --odas); fails 4 of 5 gates (laptop/audio/DOA_VS_ODAS.md) |
Keep built-in DoA working the whole time. Run ODAS in parallel with pass/fail gates:
- Raw channels: can the XVF3800's USB firmware expose individual mic channels? (Record in Audacity, count channels; check firmware options.) Fail → stop, built-in DoA wins. Timebox 3 h.
- ODAS running: routes, in order of preference:
- Capture raw channels on Windows in Python and feed ODAS in WSL via a file/network input, if ODAS's input config supports it for our build.
- A small Linux box (Raspberry Pi 5 or spare laptop with Ubuntu) as the audio node.
- (Not for demo) boot the laptop into Ubuntu from USB. Needs the XVF3800 mic geometry in the ODAS config. Timebox: rest of day 1.
- Head-to-head in noise (crowd noise playing loudly): alternating speakers, overlapping speakers, person + TV. ODAS must clearly track two sources better, without many ghost sources.
- Latency comparable to built-in (well under 250 ms).
All pass by end of day 2 → switch to ODAS. Any fail → built-in DoA, no regrets.
Also check (30 min): whether the XVF3800 control tool exposes per-beam directions besides the selected one. That could give two sources without ODAS.
If ODAS wins, ODAS Studio is a nice second screen during Q&A for the hardware prize ("this is what the array is tracking").
Source of truth: contracts/ (JSON Schema + generated or hand-mirrored types for Python, Swift and TypeScript). Contract changes go through the integrator (Kori). Bump v on breaking changes and update this section, the mocks and every client in the same commit.
- All messages are JSON text frames over the relay. No binary on the network.
- First message from each client:
hello. - Send immediately; never batch; receivers keep only the newest state; never queue stale data.
- Clients reconnect automatically (500 ms, doubling to 5 s).
interface Envelope {
type: string
v: 3
src: 'laptop' | 'phone' | 'relay' | 'dashboard' | 'memory' | 'tool'
t: number // observation time, laptop clock (phone uses its own clock + offset if known)
seq?: number
session?: string // set by the relay
}type WorldBearing = number // degrees, world frame, clockwise, (-180, 180]
type RelBearing = number // degrees, body frame, 0 = wearer's front
type Tone = 'neutral' | 'excited' | 'laughing' | 'shouting' | 'whispering' | 'questioning' | 'sad'
type SoundLabel =
| 'speech' | 'doorbell' | 'dog_barking' | 'baby_crying' | 'knock' | 'alarm'
| 'music' | 'tv' | 'laughter' | 'phone_ringing' | 'loud_bang' | 'car_horn' | 'vehicle' | 'siren' | 'door'
| 'other' // recognised, but not one of ours
| 'unknown' // heard, not classifiable: uncertainty lowers specificity, never hides the direction
type AlertKind = 'doorbell' | 'name_called' | 'dog_barking' | 'baby_crying' | 'knock' | 'alarm' | 'loud_bang'
| 'car_horn' | 'siren' | 'door'
type SoundCategory = 'speech' | 'alert' | 'animal' | 'media' | 'other' // drives ring colorinterface Hello extends Envelope {
type: 'hello'
role: 'laptop' | 'phone' | 'dashboard' | 'memory' | 'tool'
subscribe: string[] // ['*'] for all
app_version?: string
}
interface Heartbeat extends Envelope { // every 2 s
type: 'heartbeat'
status: 'ok' | 'degraded' | 'error'
detail?: string // "scribe offline → whisper", "doa source: builtin"
thermal?: 'nominal' | 'fair' | 'serious' | 'critical' // phone only
engine?: 'faster_whisper' | 'scribe_realtime' // laptop only
doa_source?: 'builtin' | 'odas' // laptop only
}
interface ClockPing extends Envelope { type: 'clock_ping'; t_phone: number }
interface ClockPong extends Envelope { type: 'clock_pong'; t_phone: number; t_laptop: number }
/** Phone → relay → all; relay re-sends the latest to new clients. */
interface Config extends Envelope {
type: 'config'
user_name: string // for name-called
name_aliases: string[]
focus_mode: boolean
belt_only_mode: boolean
features: { captions: boolean; tone: boolean; rings: boolean; alerts: boolean; belt: boolean }
alerts_enabled: Partial<Record<AlertKind, boolean>>
belt_strength: number // 0..255
}/** 10–30 Hz while anything is active; on change otherwise. Built-in DoA: one source, or two in beams mode (id = focused beam); ODAS may send several. */
interface Sources extends Envelope {
type: 'sources'
sources: {
id: number // stable while tracked (built-in: always 0)
bearing_deg: WorldBearing
energy: number // 0..1
speech: boolean
confidence: number // 0..1
}[]
}/** Fast path: the moment speech starts at a direction. */
interface SpeechStart extends Envelope {
type: 'speech_start'
utt_id: string
bearing_deg: WorldBearing
source_id: number
confidence: number
}
/** Sent repeatedly while the utterance grows (final=false), then once with final=true. */
interface Utterance extends Envelope {
type: 'utterance'
utt_id: string
t_start: number
t_end: number
text: string // committed words
pending: string // provisional words, may change
final: boolean
bearing_deg: WorldBearing // circular mean of speech directions so far
bearing_spread_deg: number
source_id: number
overlap: boolean
tone: Tone | null
tone_confidence: number
loudness: number // 0..1
engine: 'faster_whisper' | 'scribe_realtime'
stage_ms?: Record<string, number>
}interface SoundEvent extends Envelope {
type: 'sound_event'
event_id: string
label: SoundLabel
category: SoundCategory
emoji: string // "🔔"
text: string // "Doorbell"
confidence: number
bearing_deg: WorldBearing | null
t_start: number
t_end: number
count: number // merged repeats
source_id?: number // the sources track it came from
model?: string // which classifier labelled it ("panns_cnn14", a Hugging Face model id...;
// "<model>+enrolled" when an enrolled sound such as our doorbell matched)
}
interface Alert extends Envelope {
type: 'alert'
alert_id: string
kind: AlertKind
label: string // "Doorbell", "Name called"
emoji: string
priority: 1 | 2 | 3 // 3 = emergency
bearing_deg: WorldBearing | null
active: boolean // false when it ends
confidence: number
ref?: { utt_id?: string; event_id?: string }
}
/** Optional, after the event it refers to. Never decides whether an event exists or where it is. */
interface PerceptionEnrichment extends Envelope {
type: 'perception_enrichment'
ref: { utt_id?: string; event_id?: string }
attention: 'ambient' | 'notice' | 'important' | 'urgent' // how prominent to make it
attention_confidence: number
attention_model: string // Hugging Face repo id (zero-shot model), or "rules" = deterministic fallback
directed_at_user?: number // probability the speech is aimed at the wearer
context?: string // Gemini: one-line semantic note
context_model?: string
}The phone combines attention with its own relative bearing (only the phone knows "behind you"). Without
enrichment, or with attention_model: "rules", it keeps its default rules.
interface Attribution extends Envelope {
type: 'attribution'
ref: { utt_id?: string; event_id?: string }
person_label: string | null // "Person 2"; null = off camera
method: 'bearing' | 'off_camera'
score: number
}
interface Scene extends Envelope { // ~2–5 Hz
type: 'scene'
heading_deg: WorldBearing
people: { label: string; bearing_deg: WorldBearing; speaking: boolean }[]
}interface SearchRequest extends Envelope { type: 'search_request'; query_id: string; text: string; limit: number }
interface SearchResult extends Envelope {
type: 'search_result'
query_id: string
results: { t: number; kind: 'utterance' | 'alert'; person_label?: string; text: string; tone?: Tone | null; bearing_deg?: WorldBearing; score: number }[]
}| Role | Subscribes to |
|---|---|
| phone | sources, speech_start, utterance, sound_event, alert, perception_enrichment, config, clock_pong, heartbeat |
| laptop | config, clock_ping |
| dashboard (extra) | * |
| memory (extra) | utterance, alert, sound_event, perception_enrichment, attribution, search_request |
| tool | * |
{"type":"sources","v":3,"src":"laptop","t":1760000000.10,"sources":[{"id":0,"bearing_deg":38.5,"energy":0.7,"speech":true,"confidence":0.82}]}
{"type":"speech_start","v":3,"src":"laptop","t":1760000000.12,"utt_id":"u-0192","bearing_deg":38.5,"source_id":0,"confidence":0.82}
{"type":"utterance","v":3,"src":"laptop","t":1760000000.45,"utt_id":"u-0192","t_start":1760000000.08,"t_end":1760000000.45,"text":"did you see","pending":"the email","final":false,"bearing_deg":38.9,"bearing_spread_deg":4.1,"source_id":0,"overlap":false,"tone":"excited","tone_confidence":0.7,"loudness":0.55,"engine":"faster_whisper"}Phone: heading is 0°, Person 1's face is at 41° → caption on Person 1, ring around them. Relative bearing ~39° → not in front (>30°) → belt pattern speech on motor 2.
Runs on the phone. Thresholds (tune).
- Each tracked face gets a world bearing from its horizontal position (section 8).
- On
speech_start/utterance: pick the face within 15° ofbearing_deg. If two are close, prefer whoever spoke most recently. - No face within 15° → off-camera speaker: caption at the screen edge with a chevron toward the bearing (or at its screen x if in view but no face found).
- Keep the assignment for the whole utterance unless the bearing moves > 30° for > 1 s.
- Person labels: Person 1, 2, 3 in order of first appearance, each with a fixed color, kept while the track lives. A lost face that reappears within 5 s at a similar bearing keeps its label.
- Rings on sources need object detection (extra). Core: doorbell and name called use the top-right panel, plus an edge glow on the matching side if off screen, plus a ring on the person who said the name if they're on camera.
- Speech bearing: circular mean of
sourceswithspeech = true,confidence ≥ 0.4during the utterance. Spread > 25° →overlap = true. - Fixed beams (the demo): those readings only name the beam (0.8 / -179.2), so speech bearings come from SRP-PHAT on the raw mics instead, restricted to that beam's half of the room, one median bearing per utterance;
bearing_spread_deg= how much its looks agree (≥ 8°). No confident raw-mic bearing → the beam's bearing with the beam's width (audio.fixed_beam_spread_deg, 30°) as the spread, never 0. - Name called: fuzzy match of
user_nameandname_aliasesin transcripts (allow common misspellings).
Native Swift / SwiftUI, iOS 26, iPhone 17. No ARKit.
| Job | Tool | Rate |
|---|---|---|
| Camera + preview | AVFoundation; AVCaptureVideoPreviewLayer (video never passes through our code) |
30 fps, 1080p or 720p, ultrawide, landscape |
| Faces | Vision face detection every few frames + Vision tracking in between | detect 5–10 Hz, track every frame |
| Heading | CoreMotion quaternion (section 8) | 60 Hz |
| Network | URLSessionWebSocketTask to the relay (wss) |
event-driven |
| Belt | CoreBluetooth central, write-without-response | on demand |
| Rendering | SwiftUI overlays; Liquid Glass (.glassEffect()) |
every frame |
| (extra) objects | Core ML YOLO nano: person, dog, cat, tv | 10–15 Hz |
- Capture queue for frames,
alwaysDiscardsLateVideoFrames = true. - One serial queue for Vision.
- Main thread only updates overlay positions/text. Positions smoothed (critically damped spring) so captions glide.
- Tell Vision the image orientation explicitly for the landscape mount.
- Convert boxes with
previewLayer.layerRectConverted(fromMetadataOutputRect:). - First milestone: plain rectangles on faces. If they line up, everything on top will.
- Captions: above heads (below the chin only if no room, never over a mouth). Header: color dot + "Person N" + tone chip (emoji + word). Body: committed text, provisional words dimmer, max two lines, tail toward the head.
- Typing indicator on
speech_start, before words arrive. - Rings: thin ring around the active speaker in their color, pulsing gently with loudness.
- Top-right panel: icon + label ("Doorbell", "Name called") + direction ring (glowing arc toward the sound, relative to the wearer) + "behind you / to your left". Fades after a few seconds; repeats stack as ×N.
- Off-camera: captions and sounds at the matching screen edge with a chevron or edge glow.
- Status pill (small, top-left): relay connected, transcription engine, thermal.
- Debug overlay (toggle): face boxes, bearings, source markers, latency stages.
- Focus mode: shows only speech, alerts and name calls; hides background sound rings and labels.
- Belt-only mode (for judges trying the belt without the phone): heading locked to 0 (judge faces the array's front), belt driven purely from directions, AR view keeps running on the mounted or table phone.
- Speech: pattern
speechwhen someone starts talking and |relative bearing| > 30°; not again for the same person within 5 s. - Alerts: always buzz (
name_called,alert) toward the bearing. - Max one non-alert pattern per 1.5 s; higher priority interrupts lower.
Relay URL + token + session, user name + aliases, HFOV, Calibrate button, focus mode, belt-only mode, belt strength, belt connect/test, feature toggles.
Power bank in the harness, no case. ProcessInfo.thermalState: serious → halve detection rate; critical → simplify glass, drop extras. 20-minute test with AirPlay on.
- Never cover a mouth.
- Identity never by color alone: always "Person N".
- Legible glass: darker tint + text shadow; test against the brightest background at the booth. Provisional words dimmer but ≥ 4.5:1 contrast.
- Two lines max; smooth motion; respect Reduce Motion.
- Tone describes how it sounded, emoji and word; low confidence fades the chip.
- Font: SF Pro Rounded or Atkinson Hyperlegible (bundled).
- Build captions, rings and the panel in SwiftUI previews with mock data for instant visual iteration.
tools/fake_events.pysends scriptedsources/speech_start/utterance/alertthrough the relay so the app can be built without the audio side.
Core: doorbell, name called. Extras: dog barking, baby crying, knock, alarm, loud bang, car horn, siren, door.
| Alert | Source | Priority | Belt | Notes |
|---|---|---|---|---|
| Name called | transcript fuzzy match | 2 | name_called | aliases + misspellings |
| Doorbell | classifier (YAMNet or PANNs on GPU) | 2 | alert | reliable class |
| Dog barking (extra) | classifier | 1 | alert | merge repeats |
| Baby crying (extra) | classifier | 3 | emergency | |
| Loud bang (extra) | classifier | 2 | alert | never labelled "gunshot"; confidence ≥ 0.8 |
| Car horn (extra) | classifier | 2 | alert | |
| Siren (extra) | classifier | 3 | emergency | police / ambulance / fire / civil defense |
| Door (extra) | classifier | 1 | alert | someone came in; AudioSet "Door" also fires on doorbells |
- Minimum confidence 0.6 (tune). Same kind from a similar direction within 4 s updates the existing alert.
- Expire 10 s after the last detection.
- Demo doorbell plays from the Bluetooth speaker at a rehearsed spot.
- ESP32 + ULN2803 + 8 coin motors at 45° + WS2812B status ring + Anker power bank.
- ULN2803 COM pin to the motor supply (flyback diodes). Shared ground. Separate power bank ports for motors and ESP32. Confirm the bank doesn't auto-shut-off at low draw (30-minute test).
- Per-motor strength calibration (back motors often feel weaker).
- Best-hardware presentation: tidy wiring in a pouch/enclosure, quick-fit strap (velcro/buckle) over clothes, labelled.
| ID | Pattern | Rhythm | Use |
|---|---|---|---|
| 0 | stop | off | cancel |
| 1 | speech | buzz-buzz (80 on / 80 off / 80 on ms) | someone started talking, not in front |
| 2 | name_called | buzz-buzz-buzz (100 / 80) | your name |
| 3 | alert | 3 quick pulses ×2 (60 / 60) | doorbell etc. |
| 4 | emergency | fast pulses (50 / 50), max 10 s | crying, alarm |
| 5 | tick | single 40 ms | low priority |
| 6 | test | each motor in turn | wiring check |
- One GATT service, one writable characteristic (write-without-response).
- 6-byte packet:
[version 0x01, pattern_id, motor 1..8, motor2 (0=none), strength 0..255, priority]. - LED ring: green = connected, blue = speech cue, yellow = alert, red = emergency, dim white pulse = waiting.
- Test BLE in a crowded room early (Ranger had Bluetooth trouble).
The 36-hour plan (HERE_36hr_vibecode_plan/) builds these in parallel with the core, not after it. The rule
that replaces "only after the gate": nothing here is ever on the live reaction path. The core demo works with
all of it switched off. If an extra threatens the core, cut the extra.
- Memory ("Ask HERE"):
- A service on Vultr joins the relay as role
memoryand stores canonical events in Neon. It falls back to local SQLite. - It answers questions by person, direction and time, with evidence events ("what did Person 2 say about the fair?").
- A seeded synthetic day, in the same message shapes and labelled as seeded, demonstrates the long-term layer.
- A service on Vultr joins the relay as role
- Dashboard, "HERE World":
- A local page on the demo laptop: a LIVE world view with an event inspector (which provider produced which field), MEMORY, and a REPLAY LAB of what would surface under other attention settings.
- Insights come from a Databricks job, with precomputed insights as the fallback.
- Sound AI:
- A Hugging Face classifier with honest
unknowns; car horn, siren, door and vehicle labels. - Gemini context, and attention from a Hugging Face zero-shot model (
perception_enrichment).
- A Hugging Face classifier with honest
- Polish: animations, nicer direction ring, entrance effects.
Status on main (2026-10-10):
- Memory and the dashboard work, locally and against Neon/Databricks.
- Sound AI:
unknowns, enrollment and onset windows are in. The live model is stillpanns_cnn14until the Hugging Face bakeoff picks one. - Attention runs on
ruleson the demo laptop untiltransformersis in its venv (demo-checksays which tier runs). - Gemini is off without a key.
Details:
HERE_36hr_vibecode_plan/WORKLOG_K3.md.
Targets: grand prize, best hardware, sponsor prizes.
What is live and what is still the fallback, per sponsor, is tracked in
HERE_36hr_vibecode_plan/Kori/SUBMISSION_DRAFT.md. As of 2026-10-10:
- ElevenLabs: not yet run on the live API.
- Vultr: not deployed (the local relay is the demo path).
- Hugging Face: PANNs and
ruleslive; the HF models are pending.- Neon and Databricks: live.
- Grand prize: three core moments that work every time + Liquid Glass polish + judges trying the belt.
- Best hardware: the belt (clean build, quick-fit, custom patterns timed on-device) + the ReSpeaker rig + an 8-direction haptic language.
- ElevenLabs: Scribe Realtime behind the transcription interface (
--engine scribe_realtime), measured onarray_tts: WER 0.04, first words 1.24 s, final 0.82 s; pulling the network hands over to whisper mid-utterance and comes back by itself (WORKLOG_A1). - Vultr: the cloud nervous system, not the spinal reflex. The Vultr relay mirrors the laptop's stream (the phone's fallback URL off campus LAN); the memory service and API, a status page (
/api/status) and session exports to Vultr Object Storage run behind the same Caddy. One command deploys it (tools/deploy_vultr.py). The live demo runs on the local relay; Vultr down changes nothing there. - Hugging Face: open models in two places. The sound classifier (
sound_event.modelnames it; PANNs is the fallback), and local decision models that judge how much attention each event deserves and whether speech is aimed at the wearer (perception_enrichment):autotrust/JEV-9B(an open Jev-style model, 4-bit on the demo GPU), falling back to a small zero-shot model (MoritzLaurer/deberta-v3-base-zeroshot-v2.0, called directly: ~0.45 s per decision on a laptop CPU). It also scores Replay Lab relevance. Deterministic rules take over when it's slow or unsure. - Gemini: one-line semantic context on meaningful events (
perception_enrichment.context). Omitted when unavailable. - Neon: persistent memory: sessions, events, transcripts, insights.
- Databricks: historical patterns over the event export: routines, sound density, conversation partners, replay metrics.
- Check the sponsor list and criteria at the event; tag sponsors and describe their role in the submission.
- Pre-built work is allowed. Still say in the submission that HERE was started before the event; keep git history clean.
| Person | Owns |
|---|---|
| Kori (integrator, contract owner; the demo laptop with the ReSpeaker) | ReSpeaker + event engine (directions, sources, scripted scenes), the dashboard, integration, pitch |
| Adil (works from recordings; no array, no NVIDIA GPU) | Speech (ElevenLabs Scribe + whisper fallback, name called), sound AI (Hugging Face classifier + attention model, unknown, Gemini), cloud (Vultr relay, memory, Neon, Databricks) |
| iOS team (separate) | The iPhone app (ios/): vision, AR, heading, attribution, belt BLE. What they need to pick up is in IOS_INTEGRATION.md. |
| Teammate 3 | Belt hardware: wiring, enclosure, strap, ESP32 firmware (from a provided sketch), per-motor calibration |
| Teammate 4 | Testing + demo: recorded test sessions, crowd-noise tests, floor tape plan, setup timing, demo script, Deaf/HoH outreach for a quote, submission video |
Everyone can play every demo role. During the 36-hour push, each human runs three Claude workers (HERE_36hr_vibecode_plan/).
Day 1 = Thu Oct 8. Event ≈ Day 6 (confirm).
| Day | Kori (iPhone + relay) | Friend (audio) | Teammate 3 (belt) | Teammate 4 (test/demo) |
|---|---|---|---|---|
| 1 Thu | Landscape camera preview; rectangles on faces; face bearings; relay deployed with TLS; app receives tools/fake_events.py |
XVF3800 directions → sources to relay; ODAS spike gates 1–2 |
Wire 2 motors + ESP32; flash test sketch | Record crowd noise; test sessions plan; floor tape layout |
| 2 Fri | Captions attached by bearing; off-camera chevrons; heading + calibrate; rings | VAD + streaming whisper → speech_start + utterance; ODAS gates 3–4 → decide |
All 8 motors, ULN2803, power; BLE packet + patterns | Record test sessions with the real array |
| End of day 2 | Real speech → captions on the right person | |||
| 3 Sat | CoreBluetooth belt; belt rules; top-right panel; focus mode; belt-only mode | Tone + loudness; name-called; doorbell classifier → alert |
Strap, enclosure, per-motor calibration; test with phone | Noise tests; time the setup; draft demo script |
| End of day 3 | Alerts with direction; belt buzzes the right way | |||
| 4 Sun | Liquid Glass styling; thermal step-down; status pill | Robustness: reconnects, fallback paths; prep Scribe swap | Belt durability; spare motor | Full run-throughs; outreach quote |
| Evening 4 | GATE + FEATURE FREEZE: full demo 3× in a row. What isn't reliable gets cut, not fixed. Extras only if the gate passed early. | |||
| 5 Mon | Polish only; 20-min heat test with AirPlay | Final tuning in noise | Final fit | 5 rehearsals with timer; record backup video; pack checklist |
Integration checkpoints: end of each day, run the full system together for 15 minutes; fix what broke before adding anything.
Each ends with <project>/SPIKE.md (measurements + recommended settings).
Audio (friend, highest priority)
- Read directions while recording audio at the same time? Rate? Speech flag/confidence?
- 0° location, clockwise or not.
- Accuracy at 45° steps, 1 m and 1.5 m, with crowd noise playing loudly.
- Settling time on a new speaker; behaviour with alternation and overlap.
- Directions for a doorbell from the speaker?
- Per-beam directions available in the control tool?
- ODAS gates (section 11).
iPhone (Kori)
- Face rectangles align in landscape; bearing accuracy vs a protractor.
- Quaternion heading drift over 10 min in the harness.
- Relay round-trip from campus Wi-Fi.
- AirPlay to the Mac on campus Wi-Fi.
- Thermal over 20 min with AirPlay.
Belt (teammate 3)
- Motor strength through a shirt; can people tell 8 directions apart?
- BLE reliability in a room full of devices.
Transcription (friend)
- Whisper streaming latency at 0.3–0.5 s re-runs on the RTX; accuracy on the XVF3800's processed audio in noise.
here/
README.md ← this file
contracts/ ← JSON Schemas + types (TS, Python, Swift) for section 12
relay/ ← relay (Python; local primary + Vultr mirror), Caddyfile, deploy notes
laptop/
audio/ ← XVF3800 directions (+ odas/ adapter if chosen)
speech/ ← streaming whisper (+ scribe adapter), tone, name-called
sounds/ ← doorbell classifier (+ extras)
client/ ← builds contract messages, talks to the relay (fanout.py: local + mirrors)
enrich/ ← attention (JEV-9B → zero-shot → rules) + Gemini → perception_enrichment
ios/ ← Xcode project (HERE app)
belt/
firmware/ ← ESP32 Arduino sketch
tools/
fake_events.py ← scripted laptop events for phone dev
relay_tap.py ← prints every message in a session
replay.py ← replays a recorded session
demo.py ← the demo stack in one command
deploy_vultr.py ← Vultr relay + memory API in one command
fixtures/ ← recorded sessions (audio, sources log, utterances)
extras/
memory/ ← (extra) memory service: Neon (SQLite fallback), Ask HERE, replay, /api/status
cloud/ ← (extra) Databricks insights, session export bundles (Vultr Object Storage)
dashboard/ ← (extra) plain page; may reuse ar_here styling
reference/ ← external projects for reading only (gitignored, never imported)
legacy/ ← old code kept for reference during the overhaul (e.g. ar_here web prototype)
- Runs alone with a mock or fixture (no hardware needed to develop).
- Speaks only the contract.
- Keeps tunables in one config file.
- Sends heartbeats with honest status.
- Has a
CLAUDE.mdpointing here, stating its job, inputs/outputs, run commands and current milestone.
- Python 3.11+ (asyncio,
websockets) on the laptop and relay; Swift/SwiftUI on iOS; Arduino C++ on the ESP32. - Laptop entry:
python -m laptop --real | --mock | --replay fixtures/<name>. - JSON-lines logs in
logs/. - Secrets (relay token, ElevenLabs key) only in
.envfiles, never committed. - Nothing from
reference/is copied into our code.
Format: table expo. 2 min setup, 6 min judging and questions, 2 min teardown, hard stop.
- Wearer already in harness + belt; phone mounted, app open, power bank connected.
- Laptop running, ReSpeaker on its tape mark, relay connected (status pill green).
- Mac on the monitor showing the AirPlay mirror (or QuickTime cable).
- Bluetooth speaker in Speaker B's pocket/hand.
- Stack:
.\tasks.ps1 demo-up --source real(mirrors to the Vultr relay by itself whenlaptop/.envnames awss://one;--cloud= Vultr only,--no-mirror= local only), then.\tasks.ps1 demo-check(relay, token, laptop heartbeat, dashboard, memory API; loads no models). Between judge groups:.\tasks.ps1 demo-reset(relay + dashboard restart, the laptop stays warm;--fullrestarts everything).demo-downat the end. Scripted fallback:demo-up --source fake.
- Array on its tape mark (10 s)
- Wearer to their mark, facing the array front → Calibrate (10 s)
- Speakers to their marks; "check" from Person 1's mark → ring lands on them (15 s)
- Belt test pattern (5 s)
- Mirror visible on the monitor (5 s)
| Time | Beat |
|---|---|
| 0:00 | Hook: "In a group conversation, who's talking, and where? The monitor is what AR glasses would show. The wearer feels the belt." |
| 0:20 | Moment 1: Person 1 and Person 2 talk; captions, rings and tone appear over each. |
| 1:00 | Moment 2: Speaker B says something funny from behind → belt buzzes → wearer turns → caption slides in. |
| 1:30 | Moment 3: doorbell from behind → top-right panel + ring point back + belt pulses. Someone calls the wearer's name → "Name called" + triple buzz. |
| 2:00 | Judge tries the belt: belt-only mode, "close your eyes, turn when you feel it", someone speaks behind them. |
| 2:30 | Close: "One spatial picture of the room: captions on the right person, and a belt that turns you toward what you'd miss. Glasses are where this goes next." |
| 2:45 → 6:00 | Q&A (have the prior-work line, architecture, privacy and hardware answers ready). |
- Controlled conditions are fine: scripted lines, marked positions, a doorbell from our speaker, calibration before judges arrive.
- No faked outputs presented as live. If something breaks, switch to the labelled replay mode ("here's a recording of an earlier run") and say so.
- Scribe down → whisper (automatic).
- AirPlay flaky → cable + QuickTime.
- Phone hot → swap to the iPhone 16.
- Belt disconnects → app shows the intended motor on screen.
- Wi-Fi bad → phone hotspot.
| Risk | Mitigation |
|---|---|
| Directions unreliable in a loud hall | Test with loud crowd noise early; speakers at 1–1.5 m; smoothing; confidence thresholds; ODAS only if it wins the test |
| Captions on the wrong person | 15° matching, sticky assignment, rectangles milestone first, calibration check every demo |
| Overlapping speech | Mark overlap; demo with turn-taking |
| Relay/internet problems | Hotspot backup; local relay fallback tested once |
| AirPlay blocked | Cable + QuickTime |
| Phone heat | Power bank, thermal step-down, spare phone |
| Heading drift | Quaternion method; recalibrate each demo |
| BLE flaky in a crowded room | Test early; app reconnects automatically; on-screen belt indicator |
| Belt too weak through clothes | Per-motor calibration; test on non-team people |
| Similarity to Ranger | Lead with HERE's own story; cite prior work; emphasise fusion, multi-speaker captions, haptics |
| Polish eats the core | Gate + feature freeze on day 4 |
| One person carrying everything | Clear roles for all four; non-coding work delegated |
- Audio processed on the laptop; only text and directions leave it. Scribe used for transcription when available, whisper locally otherwise.
- No raw audio stored (test fixtures recorded with team consent are the exception).
- No facial recognition; people are "Person 1, 2, 3" only for the session.
- (Extra) memory auto-deletes after 7 days (tune); the user can pause and delete.
| Decision | Why |
|---|---|
| Deaf and hard-of-hearing users only | Depth over breadth; fusion serves them most |
| iPhone is the glasses: native AR, vision, attribution, belt control | Video streaming to the laptop proved impractical; on-device AR is smooth; matches how a phone would drive glasses + belt |
| Laptop is the hearing module; no audio/video on the network | Small JSON is fast and robust |
| Vultr relay; every device connects outbound | No campus device-to-device networking issues; sponsor fit |
| Phone drives the belt over CoreBluetooth | Phone has heading; removes phone→laptop dependency; laptop never needs heading |
| ReSpeaker XVF3800 on the desk; world frame = array frame | Stable reference; already working |
| Built-in DoA baseline; ODAS by timeboxed head-to-head | ODAS tracks multiple sources but needs raw channels + Linux; contract supports both |
| Landscape chest mount, ultrawide, iPhone 17 | Fits multiple speakers; mirror fills the monitor; coolest-running phone |
| AirPlay to a Mac; QuickTime cable backup | Delay irrelevant; quality and reliability matter |
| Person 1, 2, 3 labels | Simple and reliable |
| Liquid Glass, rings, top-right panel, focus mode | Premium native look; simple circles (prior research); avoid overload |
| No ARKit; heading from quaternion | Not needed; vertical phone breaks Euler yaw |
| ESP32 owns haptic timing | BLE jitter would smear rhythms |
| Whisper now, Scribe at the event | Access arrives at the event; whisper stays as fallback |
| Jetson dropped | Setup risk; laptop already strong |
| Ranger = reference only | No license; credit as prior work |
| Memory, dashboard, extra sounds, polish = extras after the gate | Core moments must be reliable first |
| "Loud bang", never "gunshot" | False positives in a hall |
| Tone describes sound, not emotion | Accuracy; captioning convention |
- Exact event date and location; ElevenLabs/Vultr prize criteria; full sponsor list.
- ODAS result (end of day 2).
- XVF3800 per-beam directions available?
- AirPlay on campus Wi-Fi: works?
- Belt base: existing belt, elastic band, or sewn fabric?
- Submission video required? (Record during the best day-5 rehearsal.)
- Relay hostname:
<ip-with-dashes>.sslip.io, set bytools/deploy_vultr.pyonce the Vultr server exists (ADIL_TODO.md §2). Jev: dropped 2026-10-10 (TypeSafe isn't a sponsor). Attention and directed-at-user come from a local Hugging Face models (autotrust/JEV-9B, an open Jev-style model; zero-shot fallback), sent asperception_enrichment. SeeHERE_36hr_vibecode_plan/Shared/ATTENTION.md.