tiny-voca-zh-warm

A very small Mandarin text-to-speech model: 4.5 million parameters, 18 MB, one male voice ("warm"), 24 kHz audio. It runs on a laptop CPU; a 4-second sentence takes about half a second.

It was trained as a learning project, start to finish on Google Colab, by distilling a large speech model into a small one.

Samples

samples/final-1.wav to final-4.wav are the model reading four sentences.

How to use

git clone https://github.com/xiaoliukuailiu/tiny-voca-zh
cd tiny-voca-zh
git checkout 7ec7434bb052fcd6da8066e77f7d0e160586e095
git apply ../zh_yi_sandhi.patch        # the tone fix shipped with this model
pip install torch soundfile pypinyin

TINY_VOCA_LANG=zh PYTHONPATH=src python -m tiny_voca.infer \
  --checkpoint ../tiny-voca-zh-warm.pt --voice ZH_M1 \
  --text "你好,这是一个很小的中文语音模型。" --output out.wav --device cpu

The voice id is ZH_M1.

How it was made

  1. Voice. A voice was designed from a text description with Qwen3-TTS VoiceDesign. It is not a recording or a clone of any real person.
  2. Data. Qwen3-TTS Base read 44,000 Mandarin sentences in that voice. The sentences are from Tatoeba, plus generated sentences with numbers, dates, prices and times.
  3. Check. Every clip was transcribed with Paraformer; clips with more than 15% character error were dropped. 42,181 clips (31.2 hours) remained.
  4. Training. The tiny-voca-zh code, 104,000 steps, about 21 hours on one NVIDIA L4.

Evaluation

300 sentences the model never saw were synthesised and transcribed with Paraformer.

Measure Result
Mean character error rate 3.3%
Median character error rate 0%
Sentences transcribed perfectly 229 of 300
The teacher's own clips, same measure 2.5%

This measures whether the words are intelligible, not how natural the voice sounds. No listening test with people was run.

Limits

  • Mandarin only. Latin letters in the input are skipped.
  • One voice.
  • Audio quality is below the teacher model's.
  • Tone changes that depend on word boundaries are handled character by character, so rhythm can be off in places.
  • All training audio is synthetic.

Credits and licences

  • Model code: tiny-voca-zh, Apache-2.0, a Mandarin port of tiny-voca by n4ze3m.
  • Teacher: Qwen3-TTS, Apache-2.0.
  • Sentences: Tatoeba, CC BY 2.0 FR.
  • Checking: Paraformer (FunASR).

This model is released under Apache-2.0.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support