← All projects
Project record1 mention
Originally shared on Hacker News

Phonon TTS

A WebGPU-based runtime for Gradium's Phonon 31M text-to-speech model that keeps the whole generation loop on the GPU in purpose-written WebGPU kernels, starts streaming audio in about 3 ms after initialization, downloads 44 MB (<40 MB brotli'd, int8 matrices), runs at 115x real time on an M3 Max, and extracts live word timings from one of the model's attention heads while it speaks.

Last shared
01 / The problem

What it addresses

The submitter needed timings for every word to highlight them, and the official Phonon runtime was larger (67 MB) and slower, so they wrote a lighter, faster second runtime with a GPU-resident generation loop.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Phonon TTS

    A WebGPU-based runtime for Gradium's Phonon 31M text-to-speech model that keeps the whole generation loop on the GPU in purpose-written WebGPU kernels, starts streaming audio in about 3 ms after initialization, downloads 44 MB (<40 MB brotli'd, int8 matrices), runs at 115x real time on an M3 Max, and extracts live word timings from one of the model's attention heads while it speaks.

    Problem: The submitter needed timings for every word to highlight them, and the official Phonon runtime was larger (67 MB) and slower, so they wrote a lighter, faster second runtime with a GPU-resident generation loop.

    Posted by @blixt · Original source ↗

    Story title · @blixt · · Source ↗

    Show HN: Phonon TTS on WebGPU, 44MB, 115x real time, with live word timings

    Submitted URL · @blixt · · Source ↗

    https://github.com/blixt/phonon

    Source text · @blixt · · Source ↗

    I tried Gradium's Phonon 31M text-to-speech model and was blown away by its quality to size ratio. I needed timings for every word to be able to highlight them, so I wrote a second runtime for it with a different design: the whole generation loop stays on the GPU in WebGPU kernels

    Source text · @blixt · · Source ↗

    it can start streaming audio in about 3 ms, and it only needs to download 44 MB (<40 MB brotli'd) instead of the official 67 MB

    Source text · @blixt · · Source ↗

    On the same devices it runs at 115x real time vs. 31x on my M3 Max, and 26x against 13x on my iPhone 17 Pro.

    Source text · @blixt · · Source ↗

    The timings are read from one of the model's attention heads while it speaks, so we practically get the time offsets of words for free.

    Source text · @blixt · · Source ↗

    Demo: blixt.xyz/phonon