2026-11-26 15:48 UTC

tiny-voca: 4.5M-parameter English TTS, CPU-runnable and Apache-2.0

state: significantheat: lowuncertainty: mediumrelevance: hightext-to-speech small-models on-device-aiMuhammed Nazeem

What is this?

Muhammed Nazeem released tiny-voca, an English text-to-speech model available on Hugging Face under Apache-2.0, with accompanying code, dataset and browser demo. The model card says it has 4,537,291 parameters, two fixed American English voices, and was trained from scratch on 17.6 hours of synthetic speech generated using Qwen3-TTS. It reports about 70× real-time generation on four CPU threads and $9.56 in GPU costs for the whole project on a rented RTX 4090. The card also reports an Open TTS Leaderboard snapshot dated November 16, 2026, ranking its two voices 8th and 13th among 50 English models; this is newer evidence than the card’s publication date of November 14. The creator cautions that the leaderboard results are not a listening test: the model can sound synthetic, has no voice cloning or prosody sampling, and is English-only. Its separate WER sanity checks used very small test sets. The linked secondary report repeats the model-card claims; the model card is the primary source.

Why it matters

tiny-voca makes a capable-sounding TTS system unusually small and inexpensive to train, with CPU and browser-compatible ONNX deployment. That could make basic speech synthesis easier to run locally, embed in lightweight apps, or use without relying on a hosted service. The reported leaderboard placements strengthen the case beyond the initial claim of speed and low cost, but fixed voices, synthetic training data, and limited listening evaluation constrain what can be concluded about naturalness and broader usefulness.

Current assessment

Muhammed Nazeem has released tiny-voca under Apache-2.0: a 4.5M-parameter English TTS model with two fixed American English voices, an ONNX/browser path, and creator-reported CPU generation at about 70× real time. The creator reports $9.56 in GPU costs for the project; this is not an independent cost audit. The model card reports a November 16 leaderboard snapshot placing its voices 8th and 13th among 50 English models, useful comparative evidence but not a substitute for formal listening evaluation. It was trained on about 18 hours of synthetic speech, and naturalness, pronunciation, broader quality and practical adoption remain uncertain. It is English-only, has no voice cloning, and offers limited voice and prosody flexibility. The release is consequential as an accessible example of small, locally runnable TTS, though current attention has cooled.

Measured heat

now 0 pts/hpeak 15 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 192h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-18 16:24 (minted)⭐ origin echo-reconstructedThe HN headline’s claims come directly from the model creator’s Hugging Face model card, which says: “The complete model, including the wave
Muhammed Nazeem on other (echo) · attributed from hn.story.50547122 · published time unknown
—
11-18 15:01first on hacker news · published · lag ?A 4.5M-parameter TTS model runs 70x real-time on CPU and cost just $10 to train
mrkn1
—
11-18 15:01amplified on hacker news 👑hn.story.50547122
mrkn1
peak 44 · 5 comments · 100% of case engagement
11-18 16:21our radar first saw it · lag ?discovery anchor: hn.story.50547122—
pace: p73 vs 2096 stories at the 168h mark (now 192h old) — ahead of auroraai-nanostories-dataset (1.0x), behind nvidia-nemotron-3-5-embed-1b-release (1.0x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnA 4.5M-parameter TTS model runs 70x real-time on CPU and cost just $10 to train
Retrieved article excerpt

Open article · Retrieved 2026-11-18T16:22:27.460448+00:00

# [n4ze3m](https://huggingface.co/n4ze3m) / [tiny-voca](https://huggingface.co/n4ze3m/tiny-voca) Like 275

[Text-to-Speech](https://huggingface.co/models?pipeline_tag=text-to-speech)[ONNX](https://huggingface.co/models?library=onnx)[GGUF](https://huggingface.co/models?library=gguf)

n4ze3m/tiny-voca

[English](https://huggingface.co/models?language=en)

License: apache-2.0

[Model card](https://huggingface.co/n4ze3m/tiny-voca)  [Files Files and versions  

xet](https://huggingface.co/n4ze3m/tiny-voca/tree/main)  [Community 

4](https://huggingface.co/n4ze3m/tiny-voca/discussions)

 

Copy to bucket

 

# tiny-voca

tiny-voca is a small English text-to-speech model with two voices, F2 (female)
and M2 (male). The complete model, including the waveform generator, has 4.5M
parameters and was trained from scratch on about 18 hours of synthetic speech.
It runs about 70x faster than real time on four CPU threads.

- Code: <https://github.com/n4ze3m/tiny-voca>
- Phonemizer: <https://github.com/n4ze3m/dizione>
- Dataset: <https://huggingface.co/datasets/n4ze3m/tiny-voca>
- Try it in the browser: <https://huggingface.co/spaces/n4ze3m/tiny-voca-studio>

|  |  |
| --- | --- |
| Parameters | 4,537,291 |
| Voices | F2, M2 (American English) |
| Output | 24 kHz mono |
| Input | Text, converted to phonemes with dizione |
| Pretrained weights in the model | None |
| License | Apache-2.0 |

## Files

| File | Size | Contents |
| --- | --- | --- |
| `tiny-voca.pt` | 18.2 MB | PyTorch weights, float32 |
| `onnx/model.onnx` | 21.4 MB | ONNX export, float32, opset 17 |
| `config.json` |  | Model settings, phoneme vocabulary, voices |
| `phonemizer/` | 5.4 MB | Data files for dizione |
| `samples/` |  | The audio on this page |

SHA256:

- `tiny-voca.pt`: `ebb22871524c5732520fb1652e6aefcec708a7452e83bdd00adcf6181db5ef70`
- `onnx/model.onnx`: `fe6d918791a15b82e37465981d7f27a070e46b46635e5a3482fc8dff87a1ae46`

## Samples

| Text | F2 | M2 |
| --- | --- | --- |
| Hello! This is tiny voca, a small text to speech model that runs on a phone or in a browser. |  |  |
| The meeting moved to 3:30 pm on March 14th, so we have about 45 minutes left. |  |  |
| Did you really think I would forget your birthday? |  |  |
| She had never seen the sea before, and for a long while she stood at the edge of the water without saying a word. |  |  |

## Usage

### PyTorch

```
pip install git+https://github.com/n4ze3m/dizione git+https://github.com/n4ze3m/tiny-voca
hf download n4ze3m/tiny-voca --local-dir tiny-voca
export DIZIONE_DATA=tiny-voca/phonemizer

python -m tiny_voca.infer \
  --checkpoint tiny-voca/tiny-voca.pt \
  --voice F2 \
  --text "Hello! This is tiny voca." \
  --output hello.wav
```

| Option | Default | Meaning |
| --- | --- | --- |
| `--text-file` |  | Read the text from a file instead of `--text`. |
| `--voice` | `F2` | `F2` or `M2` |
| `--speed` | 1.0 | Speaking rate |
| `--pitch-shift` | 0 | Added to log F0. 0.058 is about one semitone. |
| `--pitch-range` | 1.0 | Scales pitch movement around the utterance mean. |

Text of any length works. The command reads it one sentence at a time and
joins the audio. A text that ends without a mark gets a full stop. A sentence
with nothing to read, such as one in another script, is skipped. The saved
audio never peaks above 0.99.

### ONNX

The graph takes phoneme ids and stress values and returns the waveform. Text is
converted to ids outside the graph with dizione; the ids are the positions in
`vocab` in `config.json`.

```
import numpy as np
import onnxruntime as ort
import soundfile as sf
import dizione   # needs DIZIONE_DATA=tiny-voca/phonemizer

phones = dizione.phonemize("Hello! This is tiny voca.")
one = lambda value: np.array([value], dtype=np.float32)

session = ort.InferenceSession("tiny-voca/onnx/model.onnx")
audio, durations = session.run(None, {
    "tokens": np.array([phones.ids], dtype=np.int64),
    "stress": np.array([phones.stress], dtype=np.int64),
    "voice": np.array([0], dtype=np.int64),      # 0 = F2, 1 = M2
    "speed": one(1.0),
    "pitch_shift": one(0.0),
    "pitch_range": one(1.0),
})
audio = audio[0]
audio = audio * min(1.0, 0.99 / np.abs(audio).max())    # the model can peak above 1.0
sf.write("hello.wav", audio, 24000)
```

| Input | Type | Shape | Meaning |
| --- | --- | --- | --- |
| `tokens` | int64 | [1, N] | Phoneme ids, including the start and end tokens |
| `stress` | int64 | [1, N] | 0 none, 1 primary, 2 secondary |
| `voice` | int64 | [1] | 0 = F2, 1 = M2 |
| `speed` | float32 | [1] | 1.0 as predicted; larger is faster |
| `pitch_shift` | float32 | [1] | Added to log F0 |
| `pitch_range` | float32 | [1] | Scales pitch movement |

| Output | Type | Shape | Meaning |
| --- | --- | --- | --- |
| `audio` | float32 | [1, samples] | Waveform at 24 kHz |
| `durations` | int64 | [1, N] | Length of each token in frames of 256 samples |

The model reads one utterance per call, up to 512 tokens and 32 seconds. Split
longer text into sentences; `tiny_voca.infer.speak_text` does this in Python.
End each utterance with a mark such as a full stop: without one the last word
breaks off.
The audio can peak a little above 1.0 (about one sentence in twenty), so scale
it down before you save 16-bit samples, as above. The same file runs in
onnxruntime-web (WebAssembly). Its audio matches the PyTorch model to within
0.6% of the peak amplitude, apart from the random noise signal, which each
runtime draws itself.

## Model

Text is converted to phonemes with a stress value for each. A transformer
encoder (4 blocks) reads the phonemes, a duration predictor gives each one a
length in frames, and two frame-level transformers (2 and 5 blocks) predict
pitch, voicing and energy and then the parameters of the waveform generator.
All blocks use 192 channels, 4 heads and rotary position embeddings.

The waveform is produced by a source-filter synthesizer instead of a neural
vocoder. A band-limited pulse train at the predicted pitch and a noise signal
are each shaped by a time-varying filter, whose cepstrum the network predicts
once per frame (256 samples, 10.7 ms). This part has 25,862 parameters.

| Component | Parameters |
| --- | --- |
| Embeddings (phoneme, stress, voice) | 16,704 |
| Text encoder | 1,588,864 |
| Duration and pause predictor | 123,906 |
| Frame transformer A, prosody head | 795,971 |
| Frame transformer B | 1,985,984 |
| Source-filter waveform head | 25,862 |
| Total | 4,537,291 |

## Training

|  |  |
| --- | --- |
| Data | [n4ze3m/tiny-voca](https://huggingface.co/datasets/n4ze3m/tiny-voca): 16,018 clips, 17.6 hours, two voices |
| Steps | 104,737 |
| Hardware | One RTX 4090, 7.7 hours |
| Losses | Multi-resolution spectral losses; adversarial loss with multi-period and multi-resolution discriminators after step 8,000 |

The training audio is synthetic. Both voices were created from text
descriptions with Qwen3-TTS VoiceDesign, and the recordings were generated with
Qwen3-TTS 1.7B Base. No recording of a real speaker is involved. Phoneme
durations come from forced alignment with
`facebook/wav2vec2-lv-60-espeak-cv-ft`, which is used only to label the
training data. No pretrained weights are part of the model.

## Evaluation

Word error rate of synthesized speech, transcribed with Whisper small.en. The
recordings of the same sentences are scored the same way for reference.

| Sentences | Clips | WER, tiny-voca | WER, recordings |
| --- | --- | --- | --- |
| Validation | 8 | 0.6% | 0.6% |
| Test | 8 | 0.9% | 0.9% |
| New sentences, not in the dataset | 16 | 0.0% |  |

These sets are small and the scores are a sanity check, not a benchmark. No
formal listening test has been run.

### Open TTS Leaderboard

Official leaderboard snapshot: **16 November 2026** (v1.6.3), English, **without voice cloning**, equal average across Seed-TTS, CV3-Eval and MiniMax; 50 ranked models (full-coverage English). Each tiny-voca voice is a separate row; **M2** currently ranks **8th by average WER** and **F2** ranks **13th**. The hosted leaderboard notes tiny-voca is CPU-only on both rows.

| Rank | Model | Params | Average WER % ↓ | UTMOS22 ↑ |
| --- | --- | --- | --- | --- |
| 6 | phonon-31m-en | 41 M | 0.730 | 4.45 |
| 7 | Inflect Micro v3 | 12 M | 0.730 | 4.37 |
| **8** | **tiny-voca (M2)** | **4.5 M** | **0.733** | **4.34** |
| 9 | phonon-40m-en | 51 M | 0.737 | 4.45 |
| 10 | supertonic-3 | 100 M | 0.743 | 4.45 |
| … | … | … | … | … |
| 12 | PiVo-1.4M | 1.4 M | 0.767 | 4.33 |
| **13** | **tiny-voca (F2)** | **4.5 M** | **0.773** | **4.43** |
| 14 | LFM3-Audio-2B | 2.05 B | 0.797 | 4.45 |

📊 [Open TTS Leaderboard (16 Nov 2026 snapshot)](https://huggingface.co/spaces/hf-audio/open_tts_leaderboard?version=v1.6.3)

🎧 [Compare model outputs](https://huggingface.co/spaces/hf-audio/open_tts_leaderboard?listen=n4ze3m%2Ftiny-voca+%28M2%29%2CQwen%2FQwen3-TTS-12Hz-1.7B-CustomVoice%2Chexgrad%2FKokoro-82M) with Qwen3 TTS (model used for training) and Kokoro

## Limitations

- English only, two fixed voices, no voice cloning.
- The voice is clear but can sound slightly synthetic.
- The F2 voice sounds younger than intended. It was designed as an adult voice
  (the prompt asked for an adult American woman in her mid twenties; see
  voices.json in the dataset). A more mature voice is planned.
- The same text is always read the same way. There is no sampling of prosody.
- Speech is slightly faster than the training recordings at the default speed.
- Foreign names and unusual spellings are often mispronounced. Numbers,
  abbreviations and homographs depend on the phonemizer.
- No streaming.
- The training data is itself synthetic, so the model cannot be more natural
  than the model that generated it.

## Cost

The whole project cost $9.56 of GPU time on one rented RTX 4090. That is the
dataset, the failed tries and the final training run.

[Cost breakdown](https://huggingface.co/n4ze3m/tiny-voca/resolve/main/cost.png)

## Support

It cost less than a pizza to make. If you like it, you can buy me one:
<https://ko-fi.com/n4ze3m>

## License

The weights and code are released under Apache-2.0. The files in `phonemizer/`
are derived from the CMU Pronouncing Dictionary and other sources; their
licenses are in `phonemizer/LICENSE.cmudict` and
`phonemizer/LICENSE.homograph-data`.

## Citation

```
@software{nazeem2026tinyvoca,
  author = {Nazeem, Muhammed},
  title  = {tiny-voca: a 4.5M-parameter two-voice English text-to-speech model},
  year   = {2026},
  url    = {https://huggingface.co/n4ze3m/tiny-voca}
}
```

Author: Muhammed Nazeem ([ORCID 0009-0002-9991-0217](https://orcid.org/0009-0002-9991-0217)).

## Acknowledgements

The design builds on FastSpeech 2 (explicit duration and prosody prediction),
DDSP and the neural homomorphic vocoder (source-filter synthesis with predicted
filters), and HiFi-GAN and UnivNet (discriminators). No code or weights from
these projects are used.

Downloads last month
:   4,430

 

GGUF

 

Hardware compatibility

[Log In](https://huggingface.co/login) to add your hardware

4-bit

Q4\_0 8.7 MB

8-bit

Q8\_0 10.9 MB

16-bit

F16 14.9 MB

 

[View +2 variants](https://huggingface.co/n4ze3m/tiny-voca/tree/main)

  

## Model tree for n4ze3m/tiny-voca

Finetunes

 [3 models](https://huggingface.co/models?other=base_model:finetune:n4ze3m/tiny-voca)

Quantizations

 [4 models](https://huggingface.co/models?other=base_model:quantized:n4ze3m/tiny-voca)

 

## Dataset used to train n4ze3m/tiny-voca

 

## Spaces using n4ze3m/tiny-voca 6
mrkn1445
🟧 echo.other ⭐The HN headline’s claims come directly from the model creator’s Hugging Face model card, which says: “The complete model, including the waveMuhammed Nazeem——

Interpretation history

Decision trace