An 8M-parameter English text-to-speech model distilled from Kokoro-82M. 9 MB, runs 18x real time on one CPU thread.
README for 1.3: eight voices in four languages, per-voice scores
Sahil Mahendrakaraf5ca1a17daa
diff --git a/README.md b/README.mdindex 9f731b7..aa207da 100644--- a/README.md+++ b/README.md@@ -1,21 +1,28 @@# Paradee-Paradee is a small English text-to-speech model. It has 7.88M parameters and is distilled from-[Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M), and it speaks four of Kokoro's voices:-`af_heart` and `am_puck` (American) and `bf_isabella` and `bm_fable` (British).--- **Small.** The int8 model is one 8.5 MB ONNX file for all four voices, against 325 MB for Kokoro.+Paradee is a small text-to-speech model. It has 7.88M parameters and is distilled from+[Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M), and it speaks eight of Kokoro's voices+in four languages:++| Language | Voices |+|---|---|+| English | `af_heart`, `am_puck` (American), `bf_isabella`, `bm_fable` (British) |+| Hindi | `hf_alpha`, `hm_omega` |+| French | `ff_siwis` |+| Spanish | `em_alex` |++- **Small.** The int8 model is one 8.5 MB ONNX file for all eight voices, against 325 MB for Kokoro.- **Fast.** It runs about 62x faster than real time on one CPU thread, with no GPU.-- **Close to its teacher.** With `af_heart` it scores 4.40 on UTMOS (Kokoro: 4.52), and its word error rate is within a few tenths of a point of Kokoro's on all four voices.+- **Close to its teacher.** In English, French and Spanish, Whisper makes about as many mistakes on Paradee as on Kokoro, and in Hindi one or two more words in a hundred. See [What changed in 1.3](#what-changed-in-13).-**New in 1.2:** four voices instead of one, with British pronunciation for the two British voices. See [What changed in 1.2](#what-changed-in-12).+**New in 1.3:** Hindi, French and Spanish, in the same file and at the same speed.Paradee also runs inside the browser. It is the light voice in the[Chickadee](https://github.com/sahilmahendrakar/chickadee) Chrome extension, where it needs no WebGPU and no download.**Paper:** [Paradee: Distilling Kokoro-82M into an 8M-Parameter Single-Voice Text-to-Speech Model](paper/Paradee-Mahendrakar-2026.pdf) ([arXiv:2610.06817](https://arxiv.org/abs/2610.06817))-**Model files and audio samples:** [huggingface.co/sahilmahendrakar/Paradee-8M-v1.2](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.2) (earlier releases are at [Paradee-8M-v1.1](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.1) and [Paradee-8M-v1.0](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.0))+**Model files and audio samples:** [huggingface.co/sahilmahendrakar/Paradee-8M-v1.3](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.3) (earlier releases are at [Paradee-8M-v1.2](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.2), [Paradee-8M-v1.1](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.1) and [Paradee-8M-v1.0](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.0))## Quick start@@ -23,6 +30,7 @@ Paradee also runs inside the browser. It is the light voice in thepip install git+https://github.com/sahilmahendrakar/paradeepython -m paradee "Paradee is a small voice that runs anywhere." -o hello.wavpython -m paradee "Paradee is a small voice that runs anywhere." --voice bf_isabella -o hello_isabella.wav+python -m paradee "La biblioteca abre a las nueve." --voice em_alex -o hola.wav```From Python:@@ -35,6 +43,8 @@ tts = Paradee() # downloads the 8.5 MB model from the Hugging Face Hub the firaudio = tts("Paradee is a small voice that runs anywhere.") # af_heartaudio = tts("Paradee is a small voice that runs anywhere.", voice="bm_fable") # or bf_isabella, am_pucksf.write("hello.wav", audio, SAMPLE_RATE)+sf.write("namaste.wav", tts("आज मौसम बहुत अच्छा है।", voice="hf_alpha"), SAMPLE_RATE) # Hindi+sf.write("bonjour.wav", tts("Il fait très beau aujourd'hui.", voice="ff_siwis"), SAMPLE_RATE) # French````with_timestamps` also says when each word is spoken, for captions or for highlighting the word@@ -45,11 +55,41 @@ audio, words = tts.with_timestamps("Paradee is a small voice that runs anywhere.# words: [("Paradee", 0.25, 0.84), ("is", 0.84, 0.96), ("a", 0.96, 1.06), ...]: (text, start, end) in seconds```-Text is turned into phonemes with [misaki](https://github.com/hexgrad/misaki), Kokoro's own-grapheme-to-phoneme library, which is what the training data used. The first run also downloads-misaki's English dictionary data. The British voices use misaki's British dictionary, as Kokoro-does. `Paradee(version="1.1")` and `Paradee(version="1.0")` load the earlier releases, which have-`af_heart` only.+The voice sets the language, and each sentence is spoken in one language. Text is turned into+phonemes the way Kokoro does it, which is what the training data used: English with+[misaki](https://github.com/hexgrad/misaki), Kokoro's own grapheme-to-phoneme library (its British+dictionary for the British voices), and Hindi, French and Spanish with eSpeak NG through misaki.+The first English run also downloads misaki's dictionary data. `Paradee(version="1.2")` loads the+previous release with the four English voices, and `Paradee(version="1.1")` and+`Paradee(version="1.0")` load the earlier ones, which have `af_heart` only.++## What changed in 1.3++The model is the same size and shape as 1.2. The table of voice vectors in each half has eight rows+instead of four. The English voices keep their numbers (0 to 3), and the new ones are 4 to 7.+Paradee already used Kokoro's full phoneme vocabulary, which covers all of Kokoro's languages, so+nothing else changed. Both halves started from 1.2 and were trained further on Kokoro reading+Wikipedia sentences in each new voice, together with the English voices.++With the int8 ONNX file, on 200 held-out sentences per voice, Kokoro in brackets:++| Voice | UTMOS | NISQA | WER | CER |+|---|---:|---:|---:|---:|+| `af_heart` | 4.38 (4.52) | 4.93 (5.00) | 2.7% (3.0%) | 0.8% (1.0%) |+| `bf_isabella` | 4.07 (4.41) | 5.08 (5.12) | 2.9% (2.9%) | 1.0% (0.9%) |+| `am_puck` | 4.35 (4.47) | 5.01 (5.04) | 2.8% (3.0%) | 0.9% (0.9%) |+| `bm_fable` | 4.17 (4.32) | 4.96 (5.00) | 2.7% (3.0%) | 0.9% (0.9%) |+| `hf_alpha` | 3.99 (4.29) | 3.98 (4.37) | 21.7% (20.7%) | 6.4% (6.0%) |+| `hm_omega` | 3.82 (4.09) | 4.57 (4.73) | 21.6% (19.8%) | 6.7% (6.1%) |+| `ff_siwis` | 3.45 (3.65) | 4.39 (4.65) | 6.8% (6.8%) | 2.2% (2.2%) |+| `em_alex` | 3.14 (3.34) | 4.72 (4.98) | 5.0% (5.1%) | 1.5% (1.5%) |++WER and CER are the share of words and of characters that Whisper large-v3 transcribes wrongly, in+the voice's own language. NISQA, like UTMOS, predicts how clean a clip sounds. Both were trained+mostly on English ratings, so for Hindi, French and Spanish their scores only mean something next+to Kokoro's. Hindi WER is high for Kokoro too, partly because many Hindi words have more than one+accepted spelling. The English voices score the same as in 1.2, and the file size and speed are+unchanged.## What changed in 1.2@@ -137,7 +177,8 @@ between 2 and 8 kHz (phase is the timing of each frequency's wave), to remove aThe code for every step is in [`training/`](training/). It runs on one laptop.To rebuild the 1.2 ONNX files from the released PyTorch weights, see-[step 6 in the training README](training/README.md#6-exporting-12-from-the-released-weights).+[step 6 in the training README](training/README.md#6-exporting-12-from-the-released-weights). The 1.3+export is the same script with eight voices (`--voices af_heart,bf_isabella,am_puck,bm_fable,hf_alpha,hm_omega,ff_siwis,em_alex`).## Using the ONNX file directly@@ -145,7 +186,7 @@ The model is one ONNX graph that goes from token ids to audio:- **Inputs:** `input_ids`, int64 `[1, T]`. These are phoneme ids from Kokoro's vocabulary (in`config.json` on the Hub), with a `0` pad token at each end, at most 512 in total. The second- input is `speed`, float32 `[1]`, where 1.0 is normal speed. In 1.2 the third input is `voice`,+ input is `speed`, float32 `[1]`, where 1.0 is normal speed. Since 1.2 the third input is `voice`,int64 `[1]`, the voice's position in the `voices` list in `config.json` (0 is `af_heart`).- **Output:** `waveform`, float32 `[1, samples]` at 24 kHz.- **Durations:** the graph also computes each token's length in frames of 600 samples, rounded,@@ -156,7 +197,9 @@ The model is one ONNX graph that goes from token ids to audio:[`web/misaki.js`](web/misaki.js) is for the browser. Browser phonemizers such as[kokoro-js](https://github.com/hexgrad/kokoro/tree/main/kokoro.js) use eSpeak NG, which writessome sounds differently from misaki. Paradee only learned misaki's spelling. Without this-conversion Whisper mishears about 31% of words, and with it about 2%.+conversion Whisper mishears about 31% of words, and with it about 2%. It is for the English voices+only. For Hindi, French and Spanish the model learned eSpeak's own output, with the few symbol+renames in misaki's `EspeakG2P`.## License