feat(speech): the speech capability over Cap'n Web, behind a gate

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:
dckc committed 2026-12-02 15:27:50 -06:00
1 parent 147bfdc55e
commit 65e38c23cf
20 files changed
+468

No files matched your search

+6
View File
@@ -10,6 +10,11 @@
python = pkgs: pkgs.python3.withPackages (ps: [ ps.pyserial ]);
in
{
packages = forAll (pkgs: {
speech = pkgs.callPackage ./speech/server.nix { };
speech-js = pkgs.callPackage ./speech/default.nix { };
});
# nix develop --command make test
devShells = forAll (pkgs: {
default = pkgs.mkShellNoCC {
@@ -23,6 +28,7 @@
python3 -I -m doctest ir_commands.py pico_tty.py
touch $out
'';
speech = self.packages.${pkgs.system}.speech-js;
});
};
}