Files
hermeven/docs/decisions/0005-live-preview.md
T
DanandClaude Fable 5.2 b57505406b Sound check on the phone page (probe for issue #1); timing logs for name checks and previews; 0.4.1
- apps/even-client: a collapsed "Sound check" on the phone page. Finds out whether the page
  may play sound in the Even app, without a touch, in the background, and which outputs it can
  see. Plays only on a button press; sends nothing to the bridge.
- services/bridge: wake.checked (every name check) and preview.done log the clip length and the
  duration, never the words.
- tests: hands free after a recording in Agents with menu, wake and preview all on; the log
  lines carry only the fields above.
- docs: 0.4.0 rollout and Dan's device report; security 3c, 3e, 3f; 0005 records that the
  Round 20 reading of "agent sub-app" was wrong (not changed here).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 11:24:16 -08:00

70 lines
3.7 KiB
Markdown

# 0005: Words on the glasses while recording
Status: implemented with fakes only; **not device-tested**. Date: 2026-11-28.
Dan (2026-11-28): "have the live transcription going when in agent mode so that I can see what
I'm sending to the agent. I realize I'll need to subscribe to a new, paid for service to enable
this."
## What it does (0.4.0)
In **Agents** only, while a recording is being made (by tap or by hold) the screen shows
the words so far under "... is listening…", newest words kept in view. After the recording is
sent, the last preview stays under "Transcribing…" and is then replaced by "Heard: ..." with the
transcript the bridge actually gave the agent.
## How, and why no paid service yet
No new service. About every half second of new audio, and never more than one request at a time,
the app sends **the recording so far** to `POST /v1/transcribe`, and the Whisper already in the
bridge transcribes it. On the server's own figures (1.1 to 1.7 s per clip) the words should trail
the voice by roughly one to two seconds and arrive in phrases, not word by word.
A preview is only ever drawn. The question is transcribed again, whole, by its own turn, so a
preview can never be what the agent receives, and nothing about request ids, deduplication or
cancellation changes.
## What a paid streaming recogniser would change
Word-by-word text a few hundred milliseconds behind the voice, and less CPU on the server. It
would mean audio leaving the bridge host for a third party, a streaming connection through the
Even WebView (documented as allowed, untested), and a recurring cost. Not chosen or designed
here: try this first.
## Costs of this version
- While recording, the server transcribes continuously: one core busy for the length of the
recording.
- When the recording is sent, a preview still running is finished first, so the real
transcription can start up to one clip (about 1.5 s) later than before.
- A preview is a guess at an unfinished sentence and can differ from the final transcript. The
"Heard:" line is the one that is true.
- "Heard:" is cut at 160 characters on the glasses; the phone page has the whole text.
## Owner decisions pending
Whether the delay is acceptable; whether the "Heard:" line during thinking is wanted in Agents
(new there in 0.4.0).
Decided by Dan on 2026-11-28, after the Round 19 review: the live preview is for the Agents
sub-app only ("I'd only invoke the live transcription when in agent sub-app"). The reviewed
0.4.0 candidate (`31ae4ef`) also previewed recordings in hands free; that was removed. He also
ruled out sending the hands-free listener's audio to a paid service. So if a paid recogniser is
adopted it serves the Agents preview (and possibly the final transcript there); hands free stays
on the bridge's own Whisper.
## 2026-11-28, after 0.4.0 reached the glasses: the Round 20 reading was wrong
Dan, asked whether recordings he starts in hands free should also show live words:
> "That's honestly the only exact way it was supposed to work... LOL. That was literally the
> only time i wanted to see live words."
So "agent sub-app" meant talking to an agent in hands free, and "the main menu listener" meant
the background listening for a name. 0.4.0 does the reverse of what he wanted: previews in the
Agents entry, none in hands free. **Not changed yet**: Dan also reported that live words did not
appear in Agents on the device, and that has to be understood first, since the same code would
be used. Open design point: "Wendy, what is on my calendar" in one breath is a single utterance
checked for a name only when it ends, so there is no recording in progress to preview; showing
words there means checking the speech so far for a name while it is being said.