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:
@@ -1,4 +1,4 @@
|
||||
import { currentAgent, menuItems, MODE_LABEL, type AppState } from './reducer.ts';
|
||||
import { currentAgent, menuItems, menuLabel, type AppState } from './reducer.ts';
|
||||
|
||||
/**
|
||||
* HUD geometry. Canvas size and line height are documented by Even
|
||||
@@ -86,7 +86,7 @@ function renderFrame(state: AppState, nowMs: number): HudFrame {
|
||||
|
||||
case 'menu': {
|
||||
// Plain ASCII marker: the firmware font silently drops characters it does not have.
|
||||
const lines = menuItems(state).map((mode, i) => `${i === state.menuIndex ? '>' : ' '} ${MODE_LABEL[mode]}`);
|
||||
const lines = menuItems(state).map((item, i) => `${i === state.menuIndex ? '>' : ' '} ${menuLabel(item, state)}`);
|
||||
return { body: `Hermeven\n\n${lines.join('\n')}`, status: lines.length > 1 ? 'Tap: open · Swipe: move · 2×: exit' : 'Tap: open · Double-tap: exit' };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user