r/TextToSpeech • u/nato_nob • 9d ago
tiny-voca: a fully open 4.5M-parameter TTS (code, weights, dataset).
I made a small English text-to-speech model called tiny-voca. It has 4.5M parameters, two voices, and it runs in your browser.
Try it here, nothing is sent to a server: https://tiny-voca.n4ze3m.com
Some facts:
- 4,537,291 parameters, 18 MB. This is the whole model, the waveform part is included.
- Two voices, one female and one male. 24 kHz.
- About 70x faster than real time on 4 CPU threads.
- Runs with PyTorch, ONNX, and in the browser.
- Trained from scratch in 7.7 hours on one RTX 4090.
What I think is different:
- Everything is open. Code, weights, the training recipe and the dataset.
- Custom phonemizer.
- No neural vocoder. The sound is made by a small source-filter synth, which is why it is fast.
What is not good yet:
- English only, and only these two voices. No voice cloning.
- Foreign names and odd spellings are often read wrong.
- It can sound a bit synthetic.
- The training audio is synthetic too. I made it with Qwen3-TTS, so the model can't sound better than that.
Links:
- Demo: https://tiny-voca.n4ze3m.com
- Code: https://github.com/n4ze3m/tiny-voca
- Weights: https://huggingface.co/n4ze3m/tiny-voca
- Dataset: https://huggingface.co/datasets/n4ze3m/tiny-voca
- Phonemizer: https://github.com/n4ze3m/dizione
4
2
u/Scary_Tutor1872 9d ago
Amazing, do you think you can make punctuation better?
1
u/nato_nob 9d ago
Thanks! Yes, that's on my list. If you have an example where it sounded off, please share it.
2
u/asmreducation 9d ago
Is the phonemizer truly custom or derived from something else?
1
u/nato_nob 9d ago
The code is custom, I wrote the rules and the pipeline myself. The data is not all mine though: the dictionary is built from CMUdict, and the homograph part ("read", "live") is trained on Google's Wikipedia Homograph Data. The small model for unknown words is trained on CMUdict too.
4
1
u/pl201 9d ago
Very interesting. How did you generate the dataset?
1
u/nato_nob 9d ago
Thanks! It's all synthetic. I made two voices with Qwen3-TTS, had it read about 17k sentences (19 hours), and used Whisper to drop the bad clips. The scripts are in the dataset repo.
2
2
u/War-Carr 8d ago
I like it!
As someone who relies on a screen Reader with a systemwide TTS on Android, I wouldn't mind this as a systemwide TTS on Android.
Good job friend!
1
1
u/LeGoodBeef 5d ago
Three things.
The pacing is really off. It feels like the punctuation is mostly ignored. That's what throws me off the most.
After having processed the text, it creates an audio file. You said that it's "24kHz". It would be true IF THE FILE WAS STEREO. In Mono, it's 12 kHz. That stat is misleading at best.
It still sound like a robot very often; as-if it had a flanger effect added to the voice.
1
u/RoyalBlue_Sky 4d ago
Awesome. Open-source code and dataset!
Question: Is there a way to speed up the generation process?
I tried Leokani-tts-7M - with more parameters, it’s very fast. (On a 7940hs, C/ONNX, 170x real-time). And the 4.5M version of it should be even faster. But, unfortunately, both are closed-source.
Is there any chance of achieving results like that?
4
u/BeGood25 9d ago
Good job man!
Why did u need a Phonemizer tho, just curious!
Also for evaluation, do u have any results on natrualness-specific metrics?