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:
+9
-2
@@ -50,8 +50,15 @@ Stated so they are not mistaken for protections.
|
||||
with developer access to the app's storage, can use it until it is revoked.
|
||||
2. **Renewal needs only the current token.** A thief who renews before the owner notices keeps
|
||||
access until revoked or until the 90-day pairing lifetime ends.
|
||||
3. **Audio leaves the device and, with a hosted STT provider, leaves your network.** A
|
||||
self-hosted Whisper endpoint avoids this. The provider's own retention is outside our control.
|
||||
3. **Audio leaves the phone for the bridge host.** With the default built-in speech model it
|
||||
goes no further. With `STT_PROVIDER=openai-compatible` it is sent to that provider, whose
|
||||
retention is outside our control.
|
||||
3a. **The built-in model's files are downloaded from the Hugging Face hub on first start** and
|
||||
are not pinned to a revision or checked against a known hash. A compromised hub account or
|
||||
path could serve different weights. Pinning a revision is a follow-up.
|
||||
3b. **While a recording is being transcribed the bridge can pause for a few hundred
|
||||
milliseconds** (measured about 0.4 s), because the model runs in the same process. Harmless
|
||||
for one user; a worker thread would remove it.
|
||||
4. **In the simulator, raw audio frames are echoed to the WebView console.** Whether the phone
|
||||
does the same is unknown and is on the device checklist. If it does, recordings would be
|
||||
visible to whoever can read that console.
|
||||
|
||||
Reference in New Issue
Block a user