← All notes

Why Pulsa never sends your audio anywhere

An accessibility app that listens to your home all day has exactly one acceptable place to do the listening.

Pulsa turns ambient sound into vibration on the wrist, so a deaf or hard-of-hearing user notices the alarm, the doorbell, the baby. To do that it has to listen continuously, in the places people actually live.

That single sentence settles the architecture. An app that streams a live microphone feed from someone's kitchen to a server is not an accessibility tool, it is a surveillance device with a helpful feature. Everything runs on the phone.

What on-device costs you

The classifier is YAMNet, a TensorFlow Lite model with 521 sound classes, running on the phone with a rules-based DSP fallback built on FFT heuristics for when the model is unavailable. Nothing about that is free: the model has to be small enough to run continuously without cooking the battery, and there is no option to quietly improve it with a bigger server-side version later.

You also inherit the model's vocabulary. YAMNet has 521 classes and a wrist has, realistically, about eight distinguishable vibration patterns before they blur into each other.

The 521 to 8 problem

The mapping from classes to alert categories is generated from a rules file rather than typed out by hand. That sounds like a small thing and it is the difference between a mapping you can reason about and 521 lines nobody will ever re-read.

The categories are chosen by urgency, not by acoustics. Alarm, siren, smoke detector and car horn all become one high-urgency pattern because the correct human response to all four is the same: look up now. A baby cry gets its own heartbeat pattern. Speech and music get gentle ones, because they are information, not emergencies.

The interface then shows both layers: the concrete classification with its confidence, and the coarse category the wrist actually felt. "Smoke detector, smoke alarm · 87%" tells you why your wrist just did that.

The tier I deleted

The first version had a native Kotlin app for Wear OS alongside the Apple Watch one. It worked. I removed it, because high-priority notification mirroring already reached Wear OS watches — along with Huawei, Xiaomi, Zepp, Garmin and essentially anything that mirrors phone notifications — and a second native codebase was a lot of surface area for a tier that was already covered.

Deleting working code you wrote is not fun. It is usually correct.