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:
@@ -15,6 +15,18 @@ HERMES_PROFILE_LABEL=default
|
||||
# HERMEVEN_AGENT_CODY_WAKE=kody,codi
|
||||
# HERMEVEN_AGENT_WAKE=peper
|
||||
|
||||
# Optional: answers read aloud (0.5.0). Off unless a key is set here AND an agent has a voice.
|
||||
# With it on, when the user has switched "Voice" on in the app, the text of each answer (cut to
|
||||
# HERMEVEN_SPEECH_MAX_CHARS) is sent to ElevenLabs and is paid for there. The key stays on this
|
||||
# host. Voice ids are the ids ElevenLabs shows for a voice, not its name.
|
||||
# HERMEVEN_ELEVENLABS_API_KEY=replace-with-an-elevenlabs-api-key
|
||||
# HERMEVEN_AGENT_VOICE=voice-id-for-the-default-agent
|
||||
# HERMEVEN_AGENT_WENDY_VOICE=voice-id-for-wendy
|
||||
# HERMEVEN_AGENT_CODY_VOICE=voice-id-for-cody
|
||||
# HERMEVEN_ELEVENLABS_MODEL=eleven_flash_v2_5
|
||||
# HERMEVEN_SPEECH_MAX_CHARS=900
|
||||
# HERMEVEN_SPEECH_PER_MINUTE=6
|
||||
|
||||
HERMEVEN_HOST=127.0.0.1
|
||||
HERMEVEN_PORT=8787
|
||||
# Caddy is in front, so the client address comes from its forwarded header.
|
||||
|
||||
Reference in New Issue
Block a user