← All projects

Always-on voice assistant wearable

A battery-powered wearable on the ESP32-S3 that records speech all day, encrypts it on the device, and only uploads on home Wi-Fi. In progress.

TS-02 Build Hardware, firmware and server pipeline In progress

Objective

Record speech all day on a small battery-powered wearable, keep the audio private, and upload it only on home Wi-Fi. A home server turns the audio into transcripts and a searchable memory, and three buttons (Ask, Remember, Look) let me talk to it.

My role

I chose the hardware, wrote the pin map and wiring plan, and wrote the firmware and the server pipeline.

Hardware

The core is a Seeed XIAO ESP32S3 Sense, which carries the mic, camera, microSD slot and Wi-Fi. Around it sit a MAX17048 fuel gauge, a 1.54 in e-paper display, a PCF8575 I/O expander for the buttons, a hard power switch and a 2500 mAh LiPo on a swappable JST connector. The core parts come to about $66.55 across a 13-line bill of materials, which includes an optional Bluetooth audio add-on for spoken replies.

Firmware

The firmware runs on FreeRTOS with tasks pinned to cores. The audio task runs at high priority on core 1 and never blocks: if the SD writer falls behind, it drops frames and counts them rather than stalling capture.

Audio goes through a short signal chain on the device:

  1. PDM mic, then DC removal and gain
  2. Energy-based voice detection, with 500 ms of pre-roll and a 1.5 s hangover so words aren’t clipped
  3. Chunks of up to 30 s buffered in PSRAM
  4. IMA ADPCM encoding at 4:1
  5. Each chunk sealed to the server’s public key and written to SD atomically (temp file, then rename)

Security

Every chunk is encrypted to the server’s X25519 public key, so the device can encrypt but can never decrypt what it recorded. A lost wearable gives up nothing. Uploads are signed requests over the home network only, and the camera prompt is set up so it never identifies people.

Power

The radio stays off most of the time. Every 5 minutes the device checks for the home network, syncs its clock, uploads what it has, and shuts the radio down again.

The e-paper panel has its own refresh limits, so I wrote a small policy for it: it only redraws when the content changes, uses partial refreshes, limits the status bar to once every 10 s, and does a full refresh after 30 partials but never within 180 s of the last one. A 2-hour simulated stress run checks the spacing.

State Draw
Recording, radio off ~50–80 mA (estimate)
Wi-Fi sync ~100–300 mA peaks (estimate)
E-paper refresh 26.4 mW for 0.3–2 s (datasheet), then off
Fuel gauge 23 µA (datasheet)

These are estimates until I measure them on the assembled hardware.

Verification

The core firmware libraries (voice detection, ADPCM, sealing, request signing, buttons, the e-paper policy) build and run as unit tests on my computer, and the server side has its own Python tests.

Enclosure

The case is modeled in OpenSCAD around a rough interior of 65 × 55 × 25–30 mm, with the e-paper facing out, the electronics behind it and the battery at the back.

Next

Assemble the hardware, measure real current draw against the budget, and finish and print the case.