tiny-voca-zh(tiny-voca 中文版)
A 4.5M-parameter Chinese text-to-speech model trained from scratch with the
tiny-voca architecture: a FastSpeech2-style
acoustic model with a built-in source-filter waveform synthesizer — text in,
24 kHz audio out, no separate neural vocoder. It has two fixed voices, F (female)
and M (male), and reads Chinese text through a dedicated front end.
Community language model of the tiny-voca family. This is not an official tiny-voca release.
| Parameters | 4,545,355 |
| Voices | F (female), M (male) |
| Output | 24 kHz mono |
| Input | Chinese text, via the bundled front end (115-symbol inventory) |
| Pretrained weights in the model | None (trained from scratch) |
| Teacher (data synthesis only) | Qwen3-TTS-12Hz-1.7B, Apache-2.0 |
| License | Apache-2.0 |
Links
- Base project: https://github.com/n4ze3m/tiny-voca
- Upstream model: https://huggingface.co/n4ze3m/tiny-voca
- Teacher model:
Qwen3-TTS-12Hz-1.7B, obtained via ModelScope and used only to synthesize the training audio; no teacher weights are contained in this model.
Training
- Data: 22,298 designed Chinese sentences, rendered by the teacher into 24,360 clips (~23.6 h, 24 kHz mono), then force-aligned and duration-calibrated.
- Front end: 115-symbol inventory built on cn2an + jieba + pypinyin, with
tone/stress features and rule-based polyphone handling (
zh_text.py,zh_annotate.py). - Recipe: 120,000 steps in total (104k base training + 16k fine-tune on a
focus subset), following the tiny-voca training recipe (
train.py). - Evaluation: fixed 64-sentence held-out set (2 × 32 sentences), scored with
Paraformer ASR character error rate. Per-sentence results:
eval/cer_result.json.
Files
| File | Size | Contents |
|---|---|---|
tiny-voca-zh.pt |
18.2 MB | PyTorch weights, float32 (SHA256 862293aaf5e97fdc8ed01d9d774603dc21e03d3642f188f651e20a92fbeef722) |
config.json |
Model settings (24 kHz, 115 symbols, voices F/M) |
|
zh_config.json |
Front-end annotation settings | |
src/tiny_voca/ |
Full training / inference / export code | |
samples/ |
One fixed sample per voice | |
eval/cer_result.json |
Per-sentence CER on the held-out set | |
docs/PUBLISHING.md |
Release and upload checklist | |
manifest.json |
SHA256 manifest of every file in this repository |
Samples
One fixed sample per voice:
- Voice
F: sample_F.wav - Voice
M: sample_M.wav
Installation
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Python inference
import os
import sys
import soundfile as sf
sys.path.insert(0, "src")
os.environ["TINY_VOCA_FRONTEND"] = "zh"
from tiny_voca.infer import load_model, speak_text, limit_peak
model = load_model("tiny-voca-zh.pt", "cuda") # use "cpu" if no GPU
wave, _ = speak_text(model, "她在笔记本上写下一行字:明天会更好。", "F")
sf.write("out.wav", limit_peak(wave).numpy(), model.config.sample_rate, subtype="FLOAT")
Command-line inference
PYTHONPATH=src TINY_VOCA_FRONTEND=zh python -m tiny_voca.infer \
--checkpoint tiny-voca-zh.pt \
--text "她在笔记本上写下一行字:明天会更好。" \
--voice F \
--device cuda \
--output out.wav
Use --voice M for the male voice. Replace --device cuda with --device cpu
if no GPU is available. The CLI can also take --text-file for longer input.
| Option | Default | Meaning |
|---|---|---|
--voice |
F |
F or M |
--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. |
Evaluation
The reported score comes from a fixed 64-sentence held-out set (2 × 32 sentences, both voices), measured with Paraformer ASR and character error rate:
| Model | CER |
|---|---|
Student (F+M) |
2.16% |
Student voice F |
2.52% |
Student voice M |
1.80% |
| Teacher | 1.40% |
The detailed per-sentence JSON is in eval/cer_result.json.
Known limitations
- The female voice can still render some “写下一行字”-style sentences slightly
ambiguously (
xingmay lean towardheng/hang). - The front-end avoids several dictionary-context weaknesses in training data, but some rare polyphone contexts remain imperfect.
- The model is a two-voice read-aloud TTS. It does not support emotion/style control and does not automatically split long documents beyond the sentence/phrase splitting in the inference code.
- All CER numbers are ASR-based measurements, not human word-by-word transcription.
License and attribution
The model and accompanying code are released under Apache-2.0. The project is a
Chinese adaptation of tiny-voca by
Muhammed Nazeem and uses Qwen3-TTS-12Hz-1.7B as the teacher during data
synthesis. See LICENSE and NOTICE.md.
Citation
@misc{tinyvocazh2026,
title = {tiny-voca-zh: a 4.5M-parameter Chinese text-to-speech model},
author = {tiny-voca-zh contributors},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/songLucasXXX/tiny-voca-zh}},
note = {Community Chinese model of the tiny-voca family}
}
- Downloads last month
- 52
Evaluation results
- Character Error Rate (student, voices F+M) on Held-out set (64 sentences, 2 x 32)self-reported2.160
- Character Error Rate (teacher reference) on Held-out set (64 sentences, 2 x 32)self-reported1.400