feat(speech): the speech capability over Cap'n Web, behind a gate
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
The agent's ears and voice: a server on the home server transcribes a clip (sox, whisper.cpp) and speaks text (piper), one job at a time. A gate hands the capability to whoever presents its key; the key comes from systemd's credentials, not argv. make test runs the unit tests in Nix's sandbox; make smoke starts a real server on localhost, speaks a phrase, and hears it back. Generated-by: Claude Opus 5.5
This commit is contained in:
1 parent
646dfee4c6
commit
429bafe9c0
20 files changed
+621
No files matched your search
@@ -20,3 +20,9 @@ make test
|
||||
```
|
||||
|
||||
Each module's docstring says what it is. Docs are only for what isn't code, such as [wiring](ir-pico/wiring.md).
|
||||
|
||||
## Design
|
||||
|
||||
### Capabilities on the wire
|
||||
|
||||
The connections are [Cap'n Web](https://github.com/cloudflare/capnweb) over WebSockets, on a private network such as a Tailscale tailnet. A server listens with a [gate](speech/gate.js), not the capability itself: the gate hands the capability to whoever presents its key, compared in constant time, and a client can open and call in one round trip. Keys reach services through systemd's `LoadCredential` (`$CREDENTIALS_DIRECTORY`), never through argv, the environment, or the Nix store.
|
||||
Reference in new issue
Block a user