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:
Dan
2026-11-18 18:31:30 -08:00
co-authored by Claude Fable 5.2
parent 3c9e094977
commit 6d74f9e121
29 changed files with 1602 additions and 42 deletions
+2
View File
@@ -39,6 +39,8 @@ exactly in `apps/even-client/package.json`.
| Vite / Vitest | 8.3.8 / 5.1.1 |
| Fastify / @fastify/cors | 5.12.8 / 11.4.3 |
| better-sqlite3 | 13.2.0 |
| @huggingface/transformers (ONNX Runtime 1.30.0) | 4.3.2 |
| Speech model | `onnx-community/whisper-base`, `q8` |
| @sinclair/typebox | 0.34.52 |
| pino | 10.4.0 |