Files
hermeven/deploy/bridge.env.example
T
DanandClaude Fable 5.2 9874e1bb5b 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>
2026-11-29 12:11:38 -08:00

46 lines
2.4 KiB
Bash

# /etc/hermeven/bridge.env on the droplet (chmod 600, owned by the hermeven user).
HERMES_BASE_URL=http://127.0.0.1:8642
HERMES_API_KEY=replace-with-the-hermes-api-server-key
HERMES_PROFILE_LABEL=default
# Optional: more agents on the glasses (swipe at Ready to choose). Each is another profile of the
# same Hermes gateway and needs its OWN key: add API_SERVER_KEY to that profile's .env on the
# Hermes side, then repeat it here. See docs/bridge-api.md, "More than one agent".
# HERMEVEN_AGENT_NAME=Pepper
# HERMEVEN_AGENTS=wendy,cody
# HERMEVEN_AGENT_WENDY_API_KEY=replace-with-wendy-profile-api-server-key
# HERMEVEN_AGENT_CODY_API_KEY=replace-with-cody-profile-api-server-key
# Each agent is called by voice with the first word of its name. If the speech model writes a
# name another way (the phone's Diagnostics shows near misses), add those spellings:
# 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.
HERMEVEN_TRUST_PROXY=true
HERMEVEN_DB_PATH=/var/lib/hermeven/hermeven.sqlite
# An app installed through Even Hub is served from http://127.0.0.1:<port>, with a new port on
# every launch, so it needs the loopback any-port entry below. Remove it if you only ever load
# the page from this bridge's own hostname (QR sideload), which needs no entry.
HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:*
# Built-in speech-to-text (the default). The model is pinned and verified; the running service
# never downloads it and only reads this directory. Populate it at deploy time with
# npm run bridge:cli -- fetch-model
STT_PROVIDER=builtin
STT_MODEL=whisper-base
STT_MODEL_DIR=/opt/hermeven/models