Files
pdtv26/README.md
T
dckc 66e084afc7
check / check (push) Canceled after 0s
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
2026-12-02 15:46:58 -06:00

39 lines
2.2 KiB
Markdown

# Peace and Dignity at the TV: delegating the remotes to an agent
Watching TV used to mean turning the dial to 4 (NBC), 5 (CBS), or 9 (ABC). Now one stray press of the **Input** button leaves a "No Signal" screen with no obvious way back; the TV comes on but the cable box doesn't; the sound disappears because a menu sent it somewhere else. Rather than inflict this mess on our elders, we can respect them: let them say what they want, and delegate the details of handling the devices to an agent.
Part of the agent is a box within reach of the couch: press its button and talk. Its ears and voice, speech recognition and synthesis, run on a computer at home, so recordings of you never leave the house; the language model behind it sees only a transcript.
## "Put on the ballgame," says Dad
One request from the couch becomes a dozen steps for the agent, with a look at the screen when it needs one:
```
Dad: [presses the button] Put on the ballgame.
↳ notes: the home team, and the cable lineup
↳ web search: today's game, start time, which network
↳ ir: TV power, cable box power
↳ ir: Input, to the cable box
↳ ir: channel 6, 1, 4, Enter
↳ look: the game?
Agent: Here's the game. It started ten minutes ago.
```
The game isn't on 4, 5, or 9. It's on a sports network in the hundreds, behind two **Power** buttons, the **Input** button, and the cable box's remote. Our elders have done their share; let the agent do this.
## Capabilities and confinement
An agent in the living room should be able to do what it's for, and no more. A capability is a reference that both names a service and grants the right to use it. Each part holds capabilities for exactly the services it uses. The brain can press IR buttons and take one camera frame, but it can't reach a shell on the box or anyone's files.
The parts talk over [Cap'n Web](https://github.com/cloudflare/capnweb); [CONTRIBUTING](CONTRIBUTING.md#capabilities-on-the-wire) says how.
## Parts
The agent is built from parts you can buy and solder:
- **The IR emitter:** a Raspberry Pi Pico H with an IR transceiver ([wiring](ir-pico/wiring.md)), on a USB cord, aimed at the equipment.
## License
[Apache 2.0](LICENSE)