hn.today

Show HN: Kokoro-82M distilled to 3.27M params (13 MB, no espeak-ng, 31× faster)

huggingface.co8 points0 comments
Screenshot of Show HN: Kokoro-82M distilled to 3.27M params (13 MB, no espeak-ng, 31× faster)

Nano-Edge-TTS is a compact English speech synthesizer that reduces Kokoro-82M from 81.8 million learned parameters to 3.27 million, with weights occupying 13 MB. It keeps Kokoro’s phoneme inventory, 28 English voice vectors and text-processing rules, but replaces both the text model and audio decoder with newly trained components. The text side predicts speech features, durations, pitch and energy; a mapper and renderer shape the gains of a pulse train and white noise, which are converted to audio using inverse STFTs. No neural network runs at audio rate. A bundled front end removes the need to install Kokoro’s usual software dependencies, including espeak-ng, and supports PyTorch, ONNX Runtime, streaming, batching and Apple, CUDA or CPU devices.

On an Apple-silicon laptop, the reported ONNX Runtime speed is 31 times Kokoro’s, with a real-time factor of 0.0045 on one CPU thread; the PyTorch version is about 28 times faster. Quality tests show close results: on four English benchmark sets, the model scores 0.69% word error and 4.465 UTMOS, compared with Kokoro’s 0.66% and 4.51. In a targeted test of difficult words across 27 voices, it correctly rendered 78.9%, versus Kokoro’s 81.8%; it also had fewer recognition errors on 60 unseen sentences. The release includes training checkpoints, code, logs and data-rebuilding scripts, making the multi-stage distillation process reproducible, though GPU retraining may not produce identical weights.

Read on huggingface.co0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.