LHDC V5 Decoder
An independent decoder for the hi-res LHDC V5 Bluetooth codec, real time on a plain ESP32.
CH2 · TRIG'D · embedded audio
William Ho, Computer Engineering at Cal Poly San Luis Obispo. I write Bluetooth codecs from scratch, ESP32 speaker firmware and the DSP in between, and this site runs a lot of it live in your browser.
Selected work
An independent decoder for the hi-res LHDC V5 Bluetooth codec, real time on a plain ESP32.
Open-source encoder for Samsung's Galaxy Buds codec: every mode, all 14 bitrates, bitstream-checked.
Multi-codec Bluetooth A2DP audio sink for the ESP32-S31 on ESP-IDF v6.1 — LDAC, aptX/HD/LL, LHDC-v5, Opus, LC3plus, AAC, SBC. Runs entirely on internal SRAM
ESP32 hi-res Bluetooth speaker firmware: A2DP sink + AVRCP with LDAC, LHDC V5 (192 kHz/24-bit), aptX, aptX HD, AAC, SBC, Opus and Samsung SSC decoders. Own BT host stack, ESP-IDF 6.1.
Decoder for Samsung Scalable / Seamless Codec, plus ESP32 speaker firmware a Galaxy phone streams to.
Flutter companion for BDK ESP32 Bluetooth speakers. Visual EQ presets, 22 LED effects, BLE controls and detailed Android codec preferences. Android-tested development preview; desktop and Apple support in progress.
A2DP speaker firmware with BLE control, a 2-way crossover DSP, level meters and a 16×16 LED matrix.
One phone, many cheap speakers, one beat: raw Wi-Fi broadcast on a single master timeline.
The lab
The demos below aren't mock-ups. They're my actual C and C++ (the codecs, the speaker DSP, the LED engine) compiled to WebAssembly, running on your device.
lhdcv5_enc_t *enc = lhdcv5_enc_new(LHDC_VERSION_1);
lhdcv5_enc_init_encoder(enc, 96000, 24, …);Generate code →04 · LearnDatasheet
I build firmware that makes hardware play hi-res sound: multi-codec Bluetooth audio, real-time DSP, and the occasional reverse-engineered codec running bare-metal on an ESP32. Then the Android apps that drive it all over BLE.
Contact
I'm looking for Summer 2027 internships in embedded firmware, wireless audio or DSP. The fastest way to reach me is GitHub.