Skip to content

0042: Voice typing from a remote's mic button

  • Status: Accepted (owner approved the design, 2026-11-26)
  • Date: 2026-11-26

Context

The BPR3S remote's mic button speaks Google's Android TV voice protocol (ATVV) over Bluetooth LE: the host opens the mic and the remote streams IMA ADPCM audio until it stops or about 15 s pass. Without it, searching on the TV means spelling with the D-pad. The decoder is ours to write; the speech model is a new part.

Decision

A new voice compose service holds the ATVV sessions, decodes the audio, transcribes it with faster-whisper (base, multilingual, CPU int8) and types the words through the runner's existing /type. It runs from the padd image (python:3.13-slim) as its own container with a 1 GB memory limit, so a model crash or its RAM never takes padd's keys down. Languages are a household setting (a list of Whisper codes; empty detects any). The model is baked into the image and loaded at start. Design: spec.

Amended 2026-11-26 after the first TV test: the BPR3S sends no START_SEARCH on a press, only the HID mic key, and opening the mic on that key works. So padd forwards KEY_VOICECOMMAND to the voice service (POST /press with the remote's address), which opens the mic; START_SEARCH still works for remotes that send it, and both from one press count once.

Consequences

About 1 GB of RAM, and all speech-to-text stays offline on the host; any remote that offers ATVV works, not only the BPR3S. Credits: faster-whisper (MIT, SYSTRAN), Whisper weights (MIT, OpenAI), CTranslate2 (MIT). The ATVV protocol is Google's, spoken here from the wire, not copied.