|
Download README.md from oddadmix/tiny-voca-english: direct link, hf CLI and curl.
- Browser
- Download file 11.8 kB
-
https://huggingface.co/oddadmix/tiny-voca-english/resolve/main/README.md
- Command line
-
hf download hf://oddadmix/tiny-voca-english/README.md
-
curl -L -o README.md https://huggingface.co/oddadmix/tiny-voca-english/resolve/main/README.md
11.8 kB
| language: [en] | |
| license: apache-2.0 | |
| library_name: onnxruntime | |
| pipeline_tag: text-to-speech | |
| tags: | |
| - text-to-speech | |
| - tts | |
| - speech-synthesis | |
| - english | |
| - tiny-voca | |
| - tiny-voca | |
| - onnx | |
| - cpu | |
| - small-model | |
| - multi-speaker | |
| - trained-from-scratch | |
| # tiny-voca-english | |
| tiny-voca-english is a **4.54M-parameter** English text-to-speech model with **eight voices in four speaking | |
| styles** (assistant, news, story, promo; one female and one male voice each), trained **from scratch**. The waveform | |
| generator is included: text in, 24 kHz audio out, about 322× real time on four CPU threads. | |
| > **Based on [tiny-voca](https://huggingface.co/n4ze3m/tiny-voca) by Muhammed Nazeem ([@n4ze3m](https://huggingface.co/n4ze3m)).** | |
| > This model uses the original tiny-voca architecture, training code ([github.com/n4ze3m/tiny-voca](https://github.com/n4ze3m/tiny-voca)) | |
| > and phonemizer ([dizione](https://github.com/n4ze3m/dizione)), all Apache-2.0. No tiny-voca | |
| > weights were reused: it was trained from scratch on new voices. | |
| [Demo](https://huggingface.co/spaces/oddadmix/tiny-voca-english) · | |
| Half size (2.29M): [oddadmix/micro-voca-english](https://huggingface.co/oddadmix/micro-voca-english) · | |
| Quarter size (1.16M): [oddadmix/nano-voca-english](https://huggingface.co/oddadmix/nano-voca-english) | |
| | | tiny-voca-english | micro-voca-english | nano-voca-english | | |
| |---|---|---|---| | |
| | Parameters | **4,539,595 (18 MB PyTorch, 21.4 MB ONNX)** | 2,289,163 (9 MB PyTorch, 12.4 MB ONNX) | 1,157,803 (5 MB PyTorch, 7.9 MB ONNX) | | |
| | Width (channels / feed-forward / predictor) | 192 / 640 / 128 | 128 / 512 / 96 | 96 / 320 / 64 | | |
| | CPU speed, 4 threads (ONNX) | **~322× real time** | ~370× real time | ~407× real time | | |
| | Character error rate, validation / test / new sentences | **1.9% / 1.5% / 0.4%** | 1.9% / 1.4% / 0.7% | 1.9% / 1.5% / 0.2% | | |
| | Open TTS Leaderboard sets, mean WER (voice a000) | **0.66%** | 0.70% | 0.82% | | |
| | UTMOS (voice a000) | **4.55** | 4.53 | 4.53 | | |
| | Quality score (DNSMOS P.808), the 40 samples below | **3.88** | 3.88 | 3.89 | | |
| | `voice` | Name | Style | Gender | | |
| |---|---|---|---| | |
| | 0 | `a000` | Assistant | female | | |
| | 1 | `am6` | Assistant | male | | |
| | 2 | `nf2` | News | female | | |
| | 3 | `nm2` | News | male | | |
| | 4 | `sf1` | Story | female | | |
| | 5 | `sm3` | Story | male | | |
| | 6 | `pf4` | Promo | female | | |
| | 7 | `pm2` | Promo | male | | |
| ## Samples | |
| | Text | a000 | am6 | nf2 | nm2 | sf1 | sm3 | pf4 | pm2 | | |
| |---|---|---|---|---|---|---|---|---| | |
| | Hello, and welcome. This is a small text to speech model that runs entirely on your own device. | [▶](samples/a000-0.wav) | [▶](samples/am6-0.wav) | [▶](samples/nf2-0.wav) | [▶](samples/nm2-0.wav) | [▶](samples/sf1-0.wav) | [▶](samples/sm3-0.wav) | [▶](samples/pf4-0.wav) | [▶](samples/pm2-0.wav) | | |
| | Good morning! How can I help you today? Are you looking for information about your upcoming trip? | [▶](samples/a000-1.wav) | [▶](samples/am6-1.wav) | [▶](samples/nf2-1.wav) | [▶](samples/nm2-1.wav) | [▶](samples/sf1-1.wav) | [▶](samples/sm3-1.wav) | [▶](samples/pf4-1.wav) | [▶](samples/pm2-1.wav) | | |
| | The ministry announced today that three new hospitals will open in the southern provinces next spring. | [▶](samples/a000-2.wav) | [▶](samples/am6-2.wav) | [▶](samples/nf2-2.wav) | [▶](samples/nm2-2.wav) | [▶](samples/sf1-2.wav) | [▶](samples/sm3-2.wav) | [▶](samples/pf4-2.wav) | [▶](samples/pm2-2.wav) | | |
| | Once upon a time, a little girl lived in a wooden house at the edge of a quiet forest. | [▶](samples/a000-3.wav) | [▶](samples/am6-3.wav) | [▶](samples/nf2-3.wav) | [▶](samples/nm2-3.wav) | [▶](samples/sf1-3.wav) | [▶](samples/sm3-3.wav) | [▶](samples/pf4-3.wav) | [▶](samples/pm2-3.wav) | | |
| | Don't miss out! Everything in the store is half price, but only for the next three days. | [▶](samples/a000-4.wav) | [▶](samples/am6-4.wav) | [▶](samples/nf2-4.wav) | [▶](samples/nm2-4.wav) | [▶](samples/sf1-4.wav) | [▶](samples/sm3-4.wav) | [▶](samples/pf4-4.wav) | [▶](samples/pm2-4.wav) | | |
| ## How it works | |
| The same pipeline as tiny-voca: [dizione](https://github.com/n4ze3m/dizione) turns text into phonemes (a | |
| CMUdict-derived lexicon, a small neural G2P model for unknown words, a homograph model, and rules for numbers, | |
| dates, money and abbreviations), then the network predicts durations, pauses, pitch, voicing and energy and a | |
| source-filter synthesizer makes the waveform. There is no separate neural vocoder. | |
| ## Evaluation | |
| ### Held-out sentences | |
| Whisper small.en transcripts of generated speech against the input text (lower case, punctuation removed). Held-out | |
| texts were not seen in training; the new sentences appear in no split. 25 validation, 25 test and 8 new sentences | |
| per voice. CER, with the CER of the original recordings in brackets: | |
| | Voice | Validation | Test | New sentences | | |
| |---|---|---|---| | |
| | `a000` assistant F | 2.7% (2.7%) | 4.5% (4.5%) | 0.0% | | |
| | `am6` assistant M | 3.2% (3.2%) | 1.9% (1.9%) | 0.8% | | |
| | `nf2` news F | 3.6% (3.5%) | 1.0% (0.9%) | 0.8% | | |
| | `nm2` news M | 2.0% (2.0%) | 0.7% (0.7%) | 0.0% | | |
| | `sf1` story F | 1.3% (1.2%) | 0.9% (1.0%) | 0.0% | | |
| | `sm3` story M | 1.3% (1.6%) | 1.1% (0.8%) | 0.8% | | |
| | `pf4` promo F | 0.1% (0.1%) | 1.0% (1.1%) | 0.8% | | |
| | `pm2` promo M | 0.1% (0.1%) | 1.6% (1.7%) | 0.0% | | |
| Most of the remaining error is in the scoring (numbers and spelling variants): the recordings score the same. | |
| ### Open TTS Leaderboard test sets | |
| The four English test sets of the [Open TTS Leaderboard](https://huggingface.co/spaces/hf-audio/open_tts_leaderboard) | |
| (Seed-TTS eval 1,088 sentences, CV3-Eval 500, MiniMax 100, ZTTS2-Eval Mini clean 53), scored with the leaderboard's own | |
| code ([github.com/huggingface/open-tts-leaderboard](https://github.com/huggingface/open-tts-leaderboard)): Qwen3-ASR-1.7B | |
| transcripts, its text normalizer, pooled WER per set, UTMOS22 for naturalness. **This was run locally and is not an | |
| official leaderboard entry.** The other models' numbers below are recomputed with the same code from their published | |
| leaderboard runs, and the local pipeline reproduced those runs' transcripts and UTMOS exactly on a check set. | |
| RTFx is left out because it was not measured on the leaderboard's hardware. | |
| | Voice | Mean WER | Seed-TTS | CV3 | MiniMax | ZTTS2 clean | UTMOS | | |
| |---|---|---|---|---|---|---| | |
| | `a000` | 0.66% | 0.70% | 1.15% | 0.11% | 0.66% | 4.55 | | |
| | `am6` | 0.68% | 0.67% | 1.16% | 0.16% | 0.74% | 4.21 | | |
| | `nf2` | 0.69% | 0.74% | 1.22% | 0.16% | 0.66% | 4.43 | | |
| | `nm2` | 0.74% | 0.76% | 1.15% | 0.16% | 0.91% | 4.44 | | |
| | `sf1` | 0.77% | 0.69% | 1.12% | 0.21% | 1.07% | 4.51 | | |
| | `pf4` | 0.78% | 0.80% | 1.16% | 0.16% | 0.99% | 3.86 | | |
| | `pm2` | 0.81% | 0.82% | 1.30% | 0.21% | 0.91% | 4.40 | | |
| | `sm3` | 0.87% | 0.82% | 1.33% | 0.26% | 1.07% | 4.37 | | |
| With its best voice, tiny-voca-english is 2th of 51 English models by mean WER (rows sorted by unrounded WER; several models share 0.74%). | |
| | Model | Parameters | Mean WER | UTMOS | | |
| |---|---|---|---| | |
| | **tiny-voca-english** (`a000`) | 4.54M | **0.66%** | **4.55** | | |
| | **micro-voca-english** (`a000`) | 2.29M | **0.70%** | **4.53** | | |
| | **nano-voca-english** (`a000`) | 1.16M | **0.82%** | **4.53** | | |
| | [n4ze3m/tiny-voca](https://huggingface.co/n4ze3m/tiny-voca) | 4.5M | 0.74% | 4.43 | | |
| | [hexgrad/Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) | 82M | 0.64% | 4.52 | | |
| | [sahilmahendrakar/Paradee-8M-v1.3](https://huggingface.co/sahilmahendrakar/Paradee-8M-v1.3) | 8M | 0.68% | 4.38 | | |
| | [drmhse/nano-edge-tts-standalone](https://huggingface.co/drmhse/nano-edge-tts-standalone) | 3.3M | 0.74% | 4.44 | | |
| | [empero-ai/PiVo-1.4M](https://huggingface.co/empero-ai/PiVo-1.4M) | 1.4M | 0.86% | 4.33 | | |
| | [Firoj112/pawp-tts-1.5m](https://huggingface.co/Firoj112/pawp-tts-1.5m) | 1.5M | 1.79% | 2.84 | | |
| ## Usage (ONNX Runtime) | |
| ```bash | |
| pip install onnxruntime numpy soundfile | |
| hf download oddadmix/tiny-voca-english --local-dir tiny-voca-english | |
| ``` | |
| `code/dizione/` is the phonemizer the model was trained with (Apache-2.0, by @n4ze3m), with reading fixes added after training (same phoneme set): compounds with a plural second half ("wagonways"), dates ("March 20" = "March twenty", "January 12, 1985" = "January twelfth, nineteen eighty five"), two-letter acronyms ("MS", "CT" are spelled), "St" before a name = saint, middle initials ("John F. Kennedy" has no stop), ranges ("10-20%" = "ten to twenty percent", "1939-45"), years 1000-1099 ("ten sixty six"), "4x4" = "four by four", Roman numerals after names ("Elizabeth II" = "the second"), "a $5 fee" = "five dollar", heights (6'2"), "he/she", "pp." and "c.", and capitalized names that look like chat forms ("Ur", "Ty"). `phonemizer/` | |
| holds its data; the phoneme set is unchanged. Minimal call: | |
| ```python | |
| import os, sys | |
| os.environ["DIZIONE_DATA"] = "tiny-voca-english/phonemizer" # before importing dizione | |
| sys.path.insert(0, "tiny-voca-english/code") | |
| import numpy as np, onnxruntime as ort, soundfile as sf, dizione | |
| session = ort.InferenceSession("tiny-voca-english/onnx/model.onnx", providers=["CPUExecutionProvider"]) | |
| phones = dizione.phonemize("Hello! The meeting moved to 3:30 pm on March 14th.") | |
| one = lambda v: np.array([v], dtype=np.float32) | |
| voice = 0 # 0 a000, 1 am6, 2 nf2, 3 nm2, 4 sf1, 5 sm3, 6 pf4, 7 pm2 (the order of "voices" in onnx/model.json) | |
| audio, durations = session.run(None, { | |
| "tokens": np.array([phones.ids], dtype=np.int64), "stress": np.array([phones.stress], dtype=np.int64), | |
| "voice": np.array([voice], dtype=np.int64), "speed": one(1.0), "pitch_shift": one(0.0), "pitch_range": one(1.0)}) | |
| sf.write("hello.wav", audio[0], 24000) | |
| ``` | |
| Inputs: `tokens`/`stress` int64 `[1, N]`, `voice` int64 `[1]`, `speed` (1 = as predicted, larger is faster), | |
| `pitch_shift` (added to log F0; 0.058 ≈ one semitone), `pitch_range` (scales intonation). Read long text one | |
| sentence at a time (at most 500 phonemes / 32 s per call) and join the audio; the | |
| [demo Space](https://huggingface.co/spaces/oddadmix/tiny-voca-english/blob/main/app.py) shows the sentence splitting. Voices differ in | |
| loudness; scale each result to the same peak level. | |
| The PyTorch checkpoint `tiny-voca-english.pt` loads with the tiny-voca code (`tiny_voca.infer.load_model`) with | |
| `DIZIONE_DATA` pointing at `phonemizer/`; `config.json` holds the sizes. | |
| ## Training | |
| 200k steps on one GPU. Steps 0–120k use the tiny-voca adversarial weight (`--gan-ratio 0.7`); steps 120k–200k | |
| continue with `--gan-ratio 6`. The tiny-voca config with eight voices. | |
| ## Limitations | |
| - Eight voices, English only (American English pronunciation). | |
| - Pronunciation follows dizione; rare names and some homographs can be read wrongly. | |
| - The promo female voice `pf4` scores lower on naturalness (UTMOS about 3.8) than the others (4.2–4.5). | |
| - Emoji and most symbols are skipped. | |
| ## Training data | |
| 61,989 clips (171 h) in the eight synthetic voices, split by dialogue into 59,475 training, 1,174 validation and 1,340 | |
| test clips; 57,837 training clips passed the alignment quality checks. All voices are synthetic; please tell | |
| listeners when audio they hear was generated. | |
| ## License | |
| Apache-2.0. | |
| ## Credits | |
| - **Original model, architecture, training code and phonemizer:** [tiny-voca](https://huggingface.co/n4ze3m/tiny-voca) | |
| and [dizione](https://github.com/n4ze3m/dizione) by Muhammed Nazeem ([@n4ze3m](https://huggingface.co/n4ze3m)), Apache-2.0. | |
| - **Pronunciation lexicon:** derived from [CMUdict](https://github.com/cmusphinx/cmudict) (see `phonemizer/LICENSE.cmudict`). | |
| ## Citation | |
| ```bibtex | |
| @software{oddadmix2026tinyvocaenglish, | |
| author = {oddadmix}, | |
| title = {tiny-voca-english: a 4.54M-parameter eight-voice English text-to-speech model}, | |
| year = {2026}, | |
| url = {https://huggingface.co/oddadmix/tiny-voca-english}, | |
| license = {Apache-2.0} | |
| } | |
| ``` | |