A 4.5M-parameter two-voice English text-to-speech model, trained from scratch
open sourceApache-2.0self-hostablefree
tiny-voca is a small English text-to-speech model: 4,537,291 parameters and 18 MB including its waveform generator, with a female (F2) and a male (M2) American English voice at 24 kHz. Instead of a neural vocoder it predicts durations, pitch, voicing and energy, then shapes a pulse train and noise with a learned filter, which keeps it at about 70 times real time on four CPU threads. It runs in PyTorch, ONNX Runtime and ONNX Runtime Web (a browser demo, and a plain-JavaScript version for Node and Bun), and GGUF files run it in llama.cpp. Code, weights, training recipe and the synthetic dataset (19 hours generated with Qwen3-TTS, no real speaker) are all open; the whole project cost under $10 of GPU time. Released in November 2026, community fine-tunes already cover about 20 other languages.
Problems it solves
- I need a text-to-speech voice small enough to run in the browser with no server
- read text aloud offline on a CPU without a GPU or a cloud API
- an English TTS model with a permissive license I can ship in a commercial app
- speech synthesis for a microcontroller or a low-end phone
- train my own voice for another language on a single rented GPU for a few dollars
- a fast TTS model I can run from Node or Bun without Python
- generate narration in JavaScript without paying per character
- a tiny open TTS model with its training data and recipe published
Features
- 4,537,291 parameters, 18 MB, waveform generator included
- about 70x real time on four CPU threads
- two voices, F2 and M2, American English, 24 kHz
- PyTorch, ONNX Runtime and ONNX Runtime Web; GGUF for llama.cpp's llama-tts
- speed, pitch shift and pitch range controls
- long text read sentence by sentence; output never peaks above 0.99
- own phonemizer (dizione), no eSpeak needed at inference
- browser demo and a no-library JavaScript build (one 8 MB file)
- training recipe and CC BY 4.0 synthetic dataset published
- trained in 7.7 hours on one RTX 4090
Limitations
- English only: two fixed American English voices, F2 and M2, and no voice cloning12
- No streaming output yet: long text is read one sentence at a time and joined1
- Often mispronounces foreign names and odd spellings1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what tiny-voca does.
- Piper A fast and local neural text-to-speech engine
