Description
nano-edge-tts is a specialized Text-to-Speech (TTS) model developed as a compact and efficient decoder for the larger Kokoro-82M system. Its primary innovation lies in its architecture, which replaces Kokoro's 53.3M-parameter waveform decoder with two smaller neural networks. These networks operate at 80 and 160 times per second, respectively, to set per-frequency gains on a pulse train and white noise, which are then converted into audio via two inverse STFTs.
Read More
This design results in a dramatically reduced parameter count, with nano-edge-tts having only 1.75M decoder parameters compared to Kokoro-82M's 53.3M. The entire model, including Kokoro's unchanged text side, totals 30.2M parameters, a significant reduction from Kokoro-82M's 81.8M. This efficiency extends to disk space, with decoder weights occupying just 7.0 MB, down from 213 MB.
Performance benchmarks highlight its speed advantages: nano-edge-tts is 33 times faster for decoder speed and 11 times faster for phonemes-to-audio conversion on a single CPU thread compared to Kokoro-82M. It also boasts lower peak memory usage, requiring 0.75 GB versus Kokoro-82M's 1.4 to 1.7 GB. Despite these reductions, the model maintains comparable audio quality, with Whisper small.en word error rates and UTMOS scores very close to Kokoro-82M.
The model is trained by distilling Kokoro's decoder using spectral losses, waveform discriminators, and a critic on frozen WavLM layers. It is designed to be compatible with existing Kokoro workflows, allowing users to load it as a replacement decoder that functions anywhere a KModel does. The model supports Kokoro's 28 American and British English voices, inheriting its pronunciation and prosody. While other Kokoro languages can run, they remain untested. A known limitation is a faint machine-like tone on some voiced sounds, particularly on a few voices, which is detailed in its accompanying paper.
- CategoryText to Speech
- Pricing ModelOpen source
- DeploymentCloud
- PlatformsWeb
nano-edge-tts Highlights
1.75M-parameter decoder
Replaces Kokoro-82M's waveform decoder
Runs two small networks at 80 and 160 times per second
Sets per-frequency gains on pulse train and white noise
Uses two inverse STFTs for audio generation
33x faster decoder speed on one CPU thread
11x faster phonemes-to-audio conversion on one CPU thread
7.0 MB decoder weights on disk
0.75 GB peak memory for whole pipeline
Comparable audio quality to Kokoro-82M
Compatible with Kokoro-82M workflows
Supports 28 American and British English voices
Apache-2.0 License
Getting Started with nano-edge-tts
Access Model: Locate the nano-edge-tts model on Hugging Face.
Load Decoder: Use the `load()` function to get Kokoro-82M with the nano-edge-tts decoder integrated, or `load_decoder()` for the decoder alone.
Integrate: Replace Kokoro's decoder in your existing KModel setup, as it works anywhere a KModel does.
Generate Audio: Pass ASR, F0, N, and style parameters to the decoder to generate waveforms.
Utilize Weights: Access the mapper and renderer weights (nano-edge-tts.safetensors) and the decoder script (nano_edge_tts.py) for custom implementations.
nano-edge-tts's Use Cases
- Efficient Text-to-Speech
- Edge Device Deployment
- Real-time Audio Synthesis
- Resource-constrained Applications
- Kokoro-82M Decoder Replacement








