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:
@@ -236,6 +236,18 @@ export const WakeResponse = Type.Object(
|
||||
);
|
||||
export type WakeResponse = Static<typeof WakeResponse>;
|
||||
|
||||
/**
|
||||
* Answer of POST /v1/transcribe (same query string and body as /v1/wake): the words in a
|
||||
* recording that is still being made, so the app can show them while the user speaks. A
|
||||
* preview only: it creates nothing, and the question that is finally sent is transcribed again
|
||||
* by the turn itself.
|
||||
*/
|
||||
export const TranscribeResponse = Type.Object(
|
||||
{ schema_version: SchemaVersion, text: Type.String({ maxLength: DEFAULT_LIMITS.textMaxChars }) },
|
||||
{ additionalProperties: false },
|
||||
);
|
||||
export type TranscribeResponse = Static<typeof TranscribeResponse>;
|
||||
|
||||
export const TURN_STATES = [
|
||||
'accepted',
|
||||
'transcribing',
|
||||
|
||||
Reference in New Issue
Block a user