Words on the glasses while recording, and "Heard:" for spoken questions (0.4.0)

While a recording is being made the app sends the recording so far to a
new bridge route, POST /v1/transcribe, about every half second of new
audio and one request at a time, and draws the words under "... is
listening…", newest words kept in view. No new service: it is the Whisper
already in the bridge. A preview is only ever drawn. The question is
transcribed again by its own turn, so a preview can never be what the
agent receives.

After sending, the last preview stays under "Transcribing…", then "Heard:"
shows the transcript the bridge gave the agent, now for every spoken
question (it was hands free only). The reducer tracks `spoken` explicitly
and treats an accepted, not yet transcribed recording as transcribing.

Bridge: /v1/transcribe needs a device credential, shares the audio checks
with /v1/wake, runs one at a time per device within
HERMEVEN_PREVIEWS_PER_MINUTE (60), creates nothing and logs no text.
An older bridge answers 404 and the client stops asking.

Simulator: a scenario that launches the app as shipped (menu, hands free)
as Round 18 required. A diagnostics note marks when listening for a name
starts and stops.

Also records the 0.3.0 deployment, upload and Dan's device report
(docs/evidence/device/2026-11-28.md), and decision 0005.

Not reviewed, not deployed, not uploaded, not device-tested.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-28 11:44:36 -08:00
co-authored by Claude Fable 5.2
parent 44ea1148c3
commit f9946a027a
19 changed files with 531 additions and 32 deletions
+11 -9
View File
@@ -106,20 +106,22 @@ function renderFrame(state: AppState, nowMs: number): HudFrame {
case 'listening': {
const elapsed = state.captureStartedAt === null ? 0 : (nowMs - state.captureStartedAt) / 1000;
const cap = state.captureMaxSeconds;
if (state.captureAuto) {
return {
body: `${agent ? `${agent.name} is listening…` : 'Listening…'}\n\nAsk your question. It is sent when you stop speaking.`,
status: `● REC ${clock(elapsed)} / ${clock(cap)} · Tap: send · 2×: cancel`,
};
}
const title = agent ? `${agent.name} is listening…` : 'Listening…';
const status = state.captureAuto
? `● REC ${clock(elapsed)} / ${clock(cap)} · Tap: send · 2×: cancel`
: `● REC ${clock(elapsed)} / ${clock(cap)} · Tap or release: send · 2×: cancel`;
// Once there are words, they replace the instructions.
if (state.preview) return { body: `${title}\n\n${state.preview}`, status };
return {
body: `${agent ? `${agent.name} is listening…` : 'Listening…'}\n\nRecording stops by itself after ${cap} seconds.`,
status: `● REC ${clock(elapsed)} / ${clock(cap)} · Tap or release: send · 2×: cancel`,
body: state.captureAuto
? `${title}\n\nAsk your question. It is sent when you stop speaking.`
: `${title}\n\nRecording stops by itself after ${cap} seconds.`,
status,
};
}
case 'transcribing':
return { body: 'Transcribing…', status: 'Double-tap: cancel' };
return { body: state.preview ? `Transcribing…\n\n${state.preview}` : 'Transcribing…', status: 'Double-tap: cancel' };
case 'thinking': {
const title = agent ? `${agent.name} is thinking…` : 'Thinking…';