feat: mute the TV while the box listens, if the brain turns that on
check / check (push) Waiting to run

whisper hears people better without the show behind them. The brain
sets a mute code (and an unmute code, if not the same) with
mute_while_listening on its ir capability, or turns it off; ir-server
keeps the setting in its state directory.

Mute is often a toggle, and the camera can't reliably tell whether the
sound is off, so the box senses nothing: the setting is the brain's
to turn on or off.

The button service holds a connection to ir-server's conversation
socket for each conversation: ir-server mutes when it opens and
unmutes, with the same codes, when it closes. The socket's group is
the button's alone, and the button still can't send any code.

Generated-by: Claude Opus 5.5
This commit is contained in:
dckc committed 2026-12-03 16:49:58 -06:00
1 parent 5191ee9931
commit f50c871521
10 files changed
+269 -22

No files matched your search

+1
View File
@@ -47,6 +47,7 @@ You can learn and send infrared codes for anything with an IR remote: the TV, th
- NEC and Samsung codes come back as hex bytes. Samsung's carry the name ("samsung E0 E0 40 BF"); a Samsung TV ignores its code sent bare. Any other remote, Sony's for one, comes back raw, as pulse lengths ("raw 2400 600 1200 ...").
- Send a code exactly as ir_listen reported it, every number. A raw code goes out as a short press.
- Use times and gap_ms to step through an on-screen menu in one call: separate ir_send calls are too slow, and the menu closes.
- mute_while_listening has the box mute whatever plays the sound (the TV, or a receiver) for each conversation, so you hear people over the show. The box can't tell whether it's muted; whether the setting is on is yours to decide. Turn it on only with a confirmed mute code; if it leaves the sound off, or mutes when it should unmute, turn it off and report it. Note the setting in your workspace.
### Codify what you learn