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 |
Qwen3-TTS-12Hz-1.7B, obtained via ModelScope and used only to
synthesize the training audio; no teacher weights are contained in this model.zh_text.py, zh_annotate.py).train.py).eval/cer_result.json.| 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 |
One fixed sample per voice:
F: sample_F.wavM: sample_M.wavpython -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
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")
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. |
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.
xing may lean toward heng/hang).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.
@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}
}