Answers read aloud: Voice on the menu, ElevenLabs voices per agent via the bridge (0.5.0)

- bridge: GET /v1/speech (which agents have a voice) and GET /v1/turns/{id}/speech (MP3 of the
  caller's own finished answer, markup removed, first 900 characters). ElevenLabs adapter; key
  and voice ids from the environment; per-device budget; last three clips kept in memory.
  speech.done / speech.failed log ids, lengths and durations only.
- bridge: forceCloseConnections. A request the client had abandoned kept shutdown waiting for
  ever (also true of /v1/transcribe as deployed). Regression test for both routes.
- client: 'Voice: off/on' on the opening menu when the bridge offers it and the page can play
  sound; off at every launch. With it on, a finished answer is fetched and played; it stops
  when the answer leaves the screen; the app does not leave the glasses while it plays.
- tests: fake provider, fake loudspeaker (tests/integration/voice.test.ts).
- docs: 0006, security 3g-3i, device plan E, 0.4.1 rollout and Dan's sound check report.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-29 12:11:38 -08:00
co-authored by Claude Fable 5.2
parent d65beeab77
commit 9874e1bb5b
25 changed files with 1199 additions and 17 deletions
+8 -7
View File
@@ -17,13 +17,13 @@ the implementer read from the server's log, and what Cody reproduced independent
| Path | State |
|---|---|
| **What is where today** | Server (bridge and static page): `e4c102a5391464cec6f540f5a41f5557a3f61e0b`, since 2026-11-28 21:44 UTC. Even account, beta channel: client 0.4.0, built from that commit. This repository's client is **0.4.1, a candidate: not deployed, not uploaded, not on the device.** |
| **What is where today** | Server (bridge and static page): `d65beeab77288049b801e4969ac9b68821833b23`, since 2026-11-29 19:50 UTC. Even account, beta channel: client 0.4.1, built from that commit. Both deployed and checked by the implementer, not reproduced by Cody. This repository's client is **0.5.0, a candidate: not deployed, not uploaded, not on the device.** |
| Client, bridge and contract | Implemented. |
| Automated tests with fakes (357) | Passing. |
| Automated tests with fakes (375) | Passing. |
| Client in Even's official simulator | 9 scenarios, run by the implementer, simulator only. Eight run with the menu, hands free and live preview switched off (the tap path and idle exit); the ninth launches the app as shipped and covers the menu and the microphone opening and closing for hands free, with a silent microphone, so no name is ever heard. Live preview is not exercised in the simulator. One unexplained failure of the idle-exit scenario in the Round 19 runs; see `docs/test-evidence.md`. |
| Bridge against a real Hermes gateway | Passing (9 scenarios) with a **stub model**. |
| Built-in speech-to-text (Whisper, in the bridge) | Passing (11 scenarios) on a real speech recording, including with no network. Not yet on audio from the glasses. |
| Running on a droplet | Since 2026-11-28 21:44 UTC the server runs commit `e4c102a5391464cec6f540f5a41f5557a3f61e0b` (bridge and static page), which holds Cody's SHIP FOR TRIAL (Round 20). Deployed and checked by the implementer; not reproduced by Cody. Checks performed: `docs/evidence/device/2026-11-28.md`, second half. Earlier: `44ea1148c34a271f4fdc565ef71a145adf459b42` (0.3.0, same file, first half) and `docs/evidence/droplet/2026-11-21.md`. |
| Running on a droplet | Since 2026-11-29 19:50 UTC the server runs commit `d65beeab77288049b801e4969ac9b68821833b23` (bridge and static page), which holds Cody's SHIP FOR TRIAL (Round 23). Deployed and checked by the implementer; not reproduced by Cody. Checks performed: `docs/evidence/device/2026-11-29.md`. Earlier: `e4c102a` (0.4.0) and `44ea114` (0.3.0), both in `docs/evidence/device/2026-11-28.md`; `docs/evidence/droplet/2026-11-21.md`. |
| Phone page in an ordinary phone browser | Paired and answered one typed question (Chrome on Android, reported by Dan). This is **not** the Even app: a browser cannot reach the glasses. |
| Phone page inside the Even app, physical G2 | First runs on 2026-11-21, QR-sideloaded, phone unlocked: paired, four spoken questions answered on the glasses. See `docs/evidence/device/2026-11-21.md` for exactly which builds and what was and was not observed. |
| Installed as an Even Hub private build ("Pepper", `xylo.hermeven` 0.1.0) | Runs from the Even app with no QR code: paired, and four spoken questions answered on the glasses, including hold-to-talk and one that had the agent send a Telegram message (Dan's report plus the bridge log, 2026-11-21). Needs `HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:*` on the bridge. |
@@ -31,9 +31,10 @@ the implementer read from the server's log, and what Cody reproduced independent
| Locked phone | First success on 2026-11-21 with the beta build: launched by voice ("Hey Even, open Pepper") and a spoken question answered with the phone locked (Dan's report). The specification's ten-cycle acceptance run has **not** been done. |
| Leaving the glasses when idle | 0.1.1 on the device (2026-11-21, Dan's report): after one gesture the app left by itself and Telegram notifications returned to the lenses; after a voice launch with nothing touched it did **not** leave. 0.1.2 starts the countdown however the app was opened; tested with fakes and the simulator, **not installed on the device.** |
| More than one agent (swipe at Ready to choose) | 0.2.0. Deployed on 2026-11-22 with three agents; a question sent through the bridge was answered by a second Hermes profile (`docs/evidence/droplet/2026-11-21.md`). Installed on the device and tried by Dan, who reported "All tests check out" without detail (`docs/evidence/device/2026-11-21.md`, sixth session). The agent screens have not been run in the simulator. |
| Opening menu (Hands free, Agents); hands-free mode: calling an agent by name ("Wendy, ...") | Introduced in 0.3.0 (`44ea114`, no longer deployed); part of what is deployed and on beta now (0.4.0, `e4c102a`). Fakes: passing. Simulator: menu and microphone open/close only (scenario 9). Device: tried by Dan on 2026-11-28, "pretty cool"; a name reached an agent and a different name switched agent. No item-by-item report; section D of the device plan has not been run. `docs/decisions/0004-always-listening.md`, `docs/evidence/device/2026-11-28.md`. |
| Words shown while recording (Agents only); "Heard: ..." while the agent works | 0.4.0, deployed and on beta (`e4c102a`). Fakes: passing. Not in the simulator. Device, Dan, 2026-11-28: "Heard" appears; **live words did not appear**, cause unknown; and Dan wants them in hands free, not Agents (open, not built). `docs/decisions/0005-live-preview.md`, `docs/evidence/device/2026-11-28.md`. |
| Sound check on the phone page (can the page play sound, untouched, in the background; which outputs it sees) | 0.4.1 candidate. A probe for issue #1 (spoken answers), not a feature. Tested with a fake sound engine in a fake browser (`apps/even-client/test/soundCheck.test.ts`). **Never run in a real browser, the simulator, the Even app or on the device; not deployed, not uploaded.** |
| Opening menu (Hands free, Agents); hands-free mode: calling an agent by name ("Wendy, ...") | Introduced in 0.3.0 (`44ea114`, no longer deployed); part of what is deployed and on beta now (0.4.1, `d65beea`). Fakes: passing. Simulator: menu and microphone open/close only (scenario 9). Device: tried by Dan on 2026-11-28, "pretty cool"; a name reached an agent and a different name switched agent. No item-by-item report; section D of the device plan has not been run. `docs/decisions/0004-always-listening.md`, `docs/evidence/device/2026-11-28.md`. |
| Words shown while recording (Agents only); "Heard: ..." while the agent works | Introduced in 0.4.0; part of what is deployed and on beta now (0.4.1, `d65beea`). Fakes: passing. Not in the simulator. Device, Dan, 2026-11-28: "Heard" appears; **live words did not appear**, cause unknown; and Dan wants them in hands free, not Agents (open, not built). `docs/decisions/0005-live-preview.md`, `docs/evidence/device/2026-11-28.md`. |
| Sound check on the phone page (can the page play sound, untouched, later; which outputs it sees) | 0.4.1, deployed and on beta (`d65beea`). A probe for issue #1, not a feature. Fake sound engine: passing. Device, Dan, 2026-11-29, earbuds connected: tone heard in the earbuds, allowed without a touch, played 20 s after a press, no phone voice, one unnamed output (`docs/evidence/device/2026-11-29.md`). Not in the simulator. |
| Answers read aloud ("Voice" on the opening menu; ElevenLabs voices per agent, called by the bridge; first 900 characters) | 0.5.0 candidate. Fakes only: a fake provider and a fake loudspeaker. **The real provider has never been called; MP3 playback has never run in a browser, the simulator, the Even app or on the device; not deployed, not uploaded.** `docs/decisions/0006-spoken-answers.md`. |
| Real tools and approval flow | One tool use seen (a Telegram message, reported by Dan). The approval path has **not** been exercised against a real agent. |
| Sustained load, backups, monitoring, upgrades on the server | **Not verified.** |
| Clean-host install (`deploy/install.sh`) | Proven on a disposable Ubuntu 24.04 container with systemd (`tests/deploy/runbook-proof.sh`), not on a second real server. |
@@ -78,7 +79,7 @@ instructions, including building for the glasses, are in `docs/setup.md`.
| You do | It does |
|---|---|
| Open the app | From 0.3.0: a menu. Swipe to move, tap to open. **Hands free** is first, **Agents** (everything below, as before) second. |
| Open the app | From 0.3.0: a menu. Swipe to move, tap to open. **Hands free** is first, **Agents** (everything below, as before) second. From 0.5.0, when the bridge has voices set up, a third entry, **Voice: off/on**, is a switch: with it on, each answer is also read aloud on whatever sound output the phone is using. It is off at every launch. |
| In Hands free: say an agent's name, then your question | The microphone is open while the app is at rest (the status line starts with `●`). "Wendy, what's on my calendar" goes to Wendy. A name alone starts a recording that is sent when you stop speaking. Tap and swipe still work. The app stays on the glasses. |
| Tap | Start recording. The display shows `● REC` and a timer the whole time. From 0.4.0, in Agents, the words appear as you speak, a second or two behind; "Heard: ..." shows what was sent while the agent works. |
| Tap again | Stop and send. Recording also stops by itself after 30 seconds. |