Build speech-to-text into the bridge; add droplet deployment examples
STT_PROVIDER now defaults to "builtin": Whisper (onnx-community/whisper-base, q8) runs in the bridge process on the CPU via @huggingface/transformers, so no provider account is needed and recordings stay on the bridge host. Silent captures are detected by level before the model runs. The external OpenAI-compatible adapter remains available. Tests: 130 unit/integration; 4 scenarios with the real model on a real speech recording (npm run test:real-stt). Not tested on audio from the glasses or on a droplet. deploy/ and docs/deploy-droplet.md are examples that have not been run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# /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
|
||||
|
||||
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
|
||||
# Read the real value from the phone page: Diagnostics -> "Page origin".
|
||||
HERMEVEN_ALLOWED_ORIGINS=
|
||||
|
||||
# Built-in speech-to-text (the default). Model files are downloaded once into this directory.
|
||||
STT_PROVIDER=builtin
|
||||
STT_MODEL=onnx-community/whisper-base
|
||||
STT_CACHE_DIR=/var/lib/hermeven/models
|
||||
Reference in New Issue
Block a user