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:
+11
-3
@@ -23,9 +23,17 @@ HERMEVEN_DB_PATH=./data/hermeven.sqlite
|
||||
# Read the real value from Diagnostics -> "Page origin" in the phone page.
|
||||
HERMEVEN_ALLOWED_ORIGINS=
|
||||
|
||||
# --- Speech-to-text (optional; typed questions work without it) --------------
|
||||
# "none" or "openai-compatible" (any server with POST {base}/audio/transcriptions).
|
||||
STT_PROVIDER=none
|
||||
# --- Speech-to-text -----------------------------------------------------------
|
||||
# "builtin" (default): Whisper runs inside the bridge on the CPU. No account, and recordings
|
||||
# never leave the bridge host. Model files (about 80 MB) are downloaded on first start.
|
||||
# "openai-compatible": any server with POST {base}/audio/transcriptions.
|
||||
# "none": typed questions only.
|
||||
STT_PROVIDER=builtin
|
||||
# STT_MODEL=onnx-community/whisper-base # or whisper-tiny (faster), whisper-base.en (English only)
|
||||
# STT_DTYPE=q8
|
||||
# STT_CACHE_DIR=./data/models
|
||||
#
|
||||
# For STT_PROVIDER=openai-compatible:
|
||||
# STT_BASE_URL=https://stt.example/v1
|
||||
# STT_API_KEY=replace-with-your-stt-key
|
||||
# STT_MODEL=whisper-1
|
||||
|
||||
Reference in New Issue
Block a user