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:
@@ -22,6 +22,7 @@ Every error has the shape:
|
||||
| `POST /v1/conversations` | Start a new conversation. Optional `agent_id` (an id from `/v1/agents`; omitted = the default agent; anything else is 400 `invalid_request`). Closes the device's previous conversation **with that agent** only. | 201 |
|
||||
| `POST /v1/turns` | Create one turn (text or audio). | 202, or 200 for a duplicate |
|
||||
| `POST /v1/wake` | One stretch of speech heard while the app was open (raw audio body, same format as an audio turn; query: `schema_version`, `locale`, `encoding`, `sample_rate`, `channels`). Transcribed in memory and dropped. Answers `{matched, agent_id, text, near_miss}`: whether it **began** with an agent's name, which agent, and what was said after the name (empty for the name alone). When not matched `text` is always empty; `near_miss` is the first word if it was close to a name. Creates no turn and sends nothing to any agent. 404 `not_found` when speech-to-text is off or no agent has a usable name (also what an older bridge answers); 429 `rate_limited` over `HERMEVEN_WAKE_CHECKS_PER_MINUTE` (default 30) or while this device's previous check is still running. A failed transcription is answered as not matched. | 200 |
|
||||
| `POST /v1/transcribe` | The words in a recording that is still being made, for showing while the user speaks. Same body and query as `/v1/wake`. Answers `{text}` (empty if nothing was recognised or transcription failed). Transcribed in memory and dropped; creates no turn, sends nothing to any agent, logs no text. 404 `not_found` when speech-to-text is off (also what an older bridge answers); 429 `rate_limited` over `HERMEVEN_PREVIEWS_PER_MINUTE` (default 60) or while this device's previous preview is still running. | 200 |
|
||||
| `GET /v1/turns/{request_id}` | Current state and result. | 200 |
|
||||
| `POST /v1/turns/{request_id}/cancel` | Request cancellation. Idempotent. | 200 |
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
# 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)
|
||||
|
||||
While a recording is being made (by tap, by hold, or after a name in hands free) 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 preview should also be shown in hands free (it is);
|
||||
whether the "Heard:" line during thinking is wanted in Agents (new there in 0.4.0).
|
||||
@@ -91,6 +91,9 @@ If A13 fails, stop and report it. It is a product-level blocker, not a bug to wo
|
||||
| D7 | While it is open, have a notification arrive. | Did it reach the lenses? | The cost of staying open. |
|
||||
| D8 | Double tap back to the menu, choose "Agents". | Does `●` go away, does tap still work, does the app leave by itself again? | Leaving hands free. |
|
||||
|
||||
| D9 | In Agents, tap and speak a long sentence slowly. | Do words appear while speaking? How far behind? Do they jump or flicker? | Live preview on a real G2 and the real server. |
|
||||
| D10 | After sending, watch the screen. | Does "Heard: ..." show what you said? Seconds from tap to "thinking" compared with 0.3.0. | Whether a running preview delays the real transcription noticeably. |
|
||||
|
||||
## Reporting
|
||||
|
||||
Anything that fails in A13, A14, A15 or C1 is a blocker or a stated limitation of the product, to
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
# 0.3.0 on the server and the glasses, 2026-11-28
|
||||
|
||||
**Whose evidence this is.** Server facts are the implementer's (Claude's) own commands and the
|
||||
bridge's replies. What happened on the glasses is Dan's report, quoted. Nothing on the device was
|
||||
seen by the implementer.
|
||||
|
||||
## Deployment and upload
|
||||
|
||||
Cody, Round 18: SHIP, trial designation SHIP FOR TRIAL, on
|
||||
`44ea1148c34a271f4fdc565ef71a145adf459b42`. Asked to confirm the bridge deployment and the
|
||||
upload, Dan: "go".
|
||||
|
||||
| Step | Result |
|
||||
|---|---|
|
||||
| `git archive 44ea114` to `/root/hermeven-src`, `deploy/install.sh --bridge-url https://hermeven.xylo.gg` | All seven steps. `DEPLOYED_SHA` is `44ea1148c34a271f4fdc565ef71a145adf459b42` (was `dcb3736`). 0 files in the application tree not owned by root. |
|
||||
| `systemctl restart hermeven-bridge`, 19:06 UTC | active; `stt.ready`; healthz ok locally and at `https://hermeven.xylo.gg`. Hermes was not restarted. `/etc/hermeven/bridge.env` was not changed. |
|
||||
| Paired devices | Preserved (three active, as before). |
|
||||
| Smoke test with a temporary device (`deploy-smoke-wake`, revoked afterwards) | `/v1/agents`: Pepper, Wendy, Cody. `POST /v1/wake` with the repository's 11 s archive speech clip (no agent name in it): 200, `matched: false`, empty text, 1.49 s. Without a credential: 401, locally and from outside. No `wake.*` log line was written for the unmatched clip. |
|
||||
| Not tested on the server | A clip that begins with an agent's name (none exists). |
|
||||
| Package | `hermeven.ehpk`, 104,464 bytes, SHA-256 `5c8de848431143bbf5638e3d8b192536ab4fb0f0d13b684f72450f6de77f9fcf`, built from `44ea114` with a clean tree; a second pack gave the same hash. |
|
||||
| Even account | `evenhub upload` 0.3.0, then `evenhub promote 0.3.0 --to beta`. `evenhub ls`: 0.3.0 Private, beta; 0.2.0 no longer on a channel. |
|
||||
|
||||
## What Dan reported
|
||||
|
||||
One message, after updating:
|
||||
|
||||
> "pretty cool. What's weird is that when I'm in an active wendy session, I still have to say her
|
||||
> name before any time i address her. I'm undecided if this is good or not. Saying the name of a
|
||||
> different agent does switch sessions... I'm tempted to leave it as is for now."
|
||||
|
||||
| Establishes | |
|
||||
|---|---|
|
||||
| Hands free works on a real G2 through the real server | A name spoken to the glasses reached an agent, more than once, and a different name switched agent. So the microphone opened without a tap, the loudness detector found speech from the G2 microphone, and Whisper wrote at least two of the names as configured. |
|
||||
| Owner decision, 0004 item 4 (the name is needed on every question) | Undecided; "leave it as is for now". No change made. |
|
||||
|
||||
Not reported: which agents, how many attempts or misses, any near miss in Diagnostics, the menu
|
||||
itself, the name-alone flow, the delay, false triggers, noise, battery, the locked phone,
|
||||
notifications while open, or Agents mode. Section D of `docs/device-test-plan.md` has not been
|
||||
run as a checklist.
|
||||
@@ -81,6 +81,10 @@ Stated so they are not mistaken for protections.
|
||||
matched exactly and only as the first word, and what was heard is shown while the agent
|
||||
works, but a mis-transcription, another person saying the name, or audio from a speaker can
|
||||
all start a turn.
|
||||
3e. **From 0.4.0 a recording in progress is sent to the bridge repeatedly** (the whole recording
|
||||
so far, about twice a second) so its words can be shown. This is audio the user chose to
|
||||
record, going where the finished recording goes anyway; the text is returned to the app and
|
||||
not logged. A cancelled recording has therefore already reached the bridge, in memory only.
|
||||
4. **In the simulator, raw audio frames are echoed to the WebView console.** Whether the phone
|
||||
does the same is unknown and is on the device checklist. If it does, recordings would be
|
||||
visible to whoever can read that console.
|
||||
|
||||
Reference in New Issue
Block a user