check / check (push) Canceled after 0s
The box's photo goes up top, by the paragraph that introduces it. The parts list, with the workbench photo, moves to the setup guide's What you need; the README's Make your own tells how mine was made. The machine that runs speech and the brain is named for its roles, speech server and agent host, not "home server". Generated-by: Claude Opus 5.5
69 lines
5.2 KiB
Markdown
69 lines
5.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.
|
|
|
|
<a href="https://archive.org/details/dckc-ultimate-diy-tv-remote/PXL_20261127_152455720.jpg">
|
|
<img src="https://ia601808.us.archive.org/8/items/dckc-ultimate-diy-tv-remote/PXL_20261127_152455720_thumb.jpg" alt="voice kit with IR remote"/>
|
|
</a>
|
|
|
|
## "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.
|
|
|
|
## How it works
|
|
|
|
The agent has two parts: the box within reach of the couch, with an IR emitter on a cord where the TV can see it, and a Linux machine at home that serves as speech server and agent host; the diagram draws those two apart, since they can be.
|
|
|
|
```
|
|
near the couch speech server agent host
|
|
┌───────────────┐ hear ──▶ ┌──────────────┐
|
|
│ the box │ speak ──▶ │ whisper.cpp │
|
|
│ Pi 3B │ │ piper │
|
|
│ AIY Voice HAT │ ask ──────────────────────────────▶ ┌──────────────┐
|
|
│ button + LED │ │ brain, in │
|
|
│ │ ◀──── ir (learn, send) ───────────── │ bwrap, with │
|
|
│ │ ◀──── look (one frame) ───────────── │ an MCP chan. │
|
|
└───────────────┘ └──────────────┘
|
|
└─ USB cord ─▶ Pico IR ──▶ TV, cable box
|
|
```
|
|
|
|
1. A press of the box's [button](box/body/box.py) starts a conversation, and a chime says it's your turn.
|
|
2. The box records the clip and, with its [`speech` capability](#capabilities-and-confinement), has the speech server transcribe it (whisper.cpp).
|
|
3. The box sends the text with its `ask` capability: an [MCP channel](brain/channel.js) into the brain: a long-running, sandboxed language model session.
|
|
4. To act, the brain uses its capabilities on the box: [`ir`](box/ir.js) (send a learned code through the Pico) or [`look`](box/look.js) (one still frame from a camera aimed at the TV; the box flashes its LED and taps a sound on every look, so there's no unannounced looking).
|
|
5. With the same `speech` capability, the box has the speech server voice the brain's reply (piper), and plays the WAV.
|
|
6. When the brain can't fix something, `report_problem` opens an issue on one repository, using a fine-grained token that can do nothing else, so the person who looks after the box gets mail.
|
|
|
|
Whoever looks after the box can check a [status page](status/status.js) from a phone: whether the box, speech, and the brain are up, and counts of conversations, turns, IR presses, and looks. No transcripts.
|
|
|
|
The brain is Claude Code today, by way of its channels feature; the capabilities don't depend on it, and another harness that speaks MCP could take its place. Its [instructions](brain/instructions.md) say how to work the TV; a household file says who's who.
|
|
|
|
## 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.
|
|
|
|
## Make your own
|
|
|
|
I made mine from a [Raspberry Pi and Voice Kit from a 2017 project](https://www.madmode.com/2017/sel4-rpi). The [setup guide](docs/setup.md) covers the parts I used; other suitable parts might be easier to find now.
|
|
|
|
## License
|
|
|
|
[Apache 2.0](LICENSE)
|