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:
@@ -12,10 +12,11 @@ small bridge between the two.
|
||||
| Path | State |
|
||||
|---|---|
|
||||
| Client, bridge and contract | Implemented. |
|
||||
| Automated tests with fakes (122) | Passing. |
|
||||
| Automated tests with fakes (130) | Passing. |
|
||||
| Client in Even's official simulator | Passing (6 scenarios). Simulator only. |
|
||||
| Bridge against a real Hermes gateway | Passing (9 scenarios) with a **stub model**. |
|
||||
| Real speech-to-text | **Not run.** No provider was configured. |
|
||||
| Built-in speech-to-text (Whisper, in the bridge) | Passing (4 scenarios) on a real speech recording. Not yet on audio from the glasses. |
|
||||
| Running on a droplet | **Not run.** See `docs/deploy-droplet.md`. |
|
||||
| Real model, real tools, approval flow | **Not run.** |
|
||||
| Physical G2, ring, locked-phone use, battery | **Not run.** See `docs/device-test-plan.md`. |
|
||||
|
||||
@@ -28,7 +29,7 @@ thing to test on a device and it is not known to work.
|
||||
```
|
||||
G2 <-Bluetooth-> Even phone app (WebView: apps/even-client)
|
||||
| HTTPS + device credential
|
||||
services/bridge --> speech-to-text endpoint you choose
|
||||
services/bridge (speech-to-text built in: Whisper on the CPU)
|
||||
|
|
||||
your Hermes API server
|
||||
```
|
||||
@@ -75,6 +76,7 @@ npm run typecheck
|
||||
npm test # unit and integration, fakes only
|
||||
npm run test:simulator # opens Even's simulator window
|
||||
npm run test:real-hermes # real `hermes gateway` in a throwaway home, stub model
|
||||
npm run test:real-stt # the built-in Whisper model on a real speech recording
|
||||
```
|
||||
|
||||
What each suite does and does not show is in `docs/test-evidence.md`.
|
||||
@@ -89,6 +91,7 @@ What each suite does and does not show is in `docs/test-evidence.md`.
|
||||
| `docs/bridge-api.md` | The bridge contract. |
|
||||
| `docs/security.md` | Threat model, controls, known gaps. |
|
||||
| `docs/setup.md` | Running, building, operating. |
|
||||
| `docs/deploy-droplet.md` | Running the bridge on a DigitalOcean droplet. Written, not yet run. |
|
||||
| `docs/device-test-plan.md` | The physical-device checklist. Not yet run. |
|
||||
| `docs/test-evidence.md` | Commands run and their real results. |
|
||||
| `docs/decisions/` | Decision records. |
|
||||
|
||||
Reference in New Issue
Block a user