Skip to content

By PromptFission2 min read

tiny-voca is a 4.5M-parameter text-to-speech model trained for $9.56

An 18 MB English speech model with two voices runs in a browser tab. It skips the neural vocoder and learned from 19 hours of speech that another model generated.


tiny-voca is an English text-to-speech model with 4,537,291 parameters and two voices. The README puts it at 18 MB and says it runs on a CPU or in a browser. The author, Muhammed Nazeem, also publishes the bill: $9.56 of rented GPU time for the dataset, the failed attempts, and the final run.

How it works

Most of the saving is at the end of the pipeline. Neural speech systems usually finish with a vocoder, a second network that turns predicted spectra into audio. According to docs/model.md, tiny-voca has none. It uses a source-filter synthesizer: a pulse train at the predicted pitch and a noise signal, each shaped by a filter that changes over time. The network only has to predict the filter settings once per frame, every 256 samples. That waveform head is 25,862 parameters.

The rest is a small transformer stack. Text becomes phonemes with stress marks. A 4-block text encoder (192 channels, 4 heads) reads them. A predictor sets durations and pauses, a 2-block stage predicts pitch, voicing, and energy, and a 5-block stage produces the filter parameters. The text encoder and the last stage hold about 3.6M of the 4.5M weights.

The training data is synthetic. The docs say both voices were designed from text descriptions with Qwen3-TTS, and all 19.1 hours of audio (17,371 clips) were generated from those two reference clips. No real speaker is involved. Whisper small.en screened the clips and rejected any above 15 percent word error rate.

Training took 104,737 steps and 7.7 hours on one RTX 4090. The first 8,000 steps use spectral losses only, then discriminators are added.

What the author claims, and does not

The README reports about 70 times real time on four CPU threads, with 24 kHz output. The docs report word error rates under 1 percent as judged by Whisper, but on sets of 8 and 16 clips, and call that “a sanity check, not a benchmark”. There is no listening test.

The listed limits are plain: English only, two fixed voices, no cloning, no streaming, and foreign names are often read wrong. One voice, the author says, sounds younger than intended.

Try it yourself

The repo has 19 commits dated November 14 to 17. Install with pip, pull the weights with the Hugging Face CLI, and run python -m tiny_voca.infer with a voice and some text. There is an ONNX export and a browser demo linked from the README. Code and weights are Apache 2.0, and the dataset is CC BY 4.0. The README already lists community ports, including one for an ESP32-S3, which the author says they have not tested.

We have not run the model or heard it. Hugging Face and the demo site were unreachable from our build machine, so we could not open the weights page; this is based on the README, the model docs, and the commit history.