tiny-voca-zh
an ultra-compact Chinese text-to-speech model
2 min read
Based on the tiny-voca architecture, this model features an acoustic system with a built-in waveform synthesizer. Weighing just 4.5 million parameters, it takes Chinese text as input and outputs ready-to-use 24 kHz audio without requiring a separate neural vocoder. The repository provides two fixed voices (female F and male M), while text preprocessing is handled by a built-in frontend based on the cn2an, jieba, and pypinyin libraries. This project is ideal for developers who need fast, local Chinese text-to-speech generation on low-end hardware.
Key features
- Minimal size: only 4.5M parameters and a weights file size of 18.2 MB.
- Two voices: built-in presets for female (
F) and male (M) voices. - Direct output: generation of 24 kHz mono audio without an intermediate vocoder.
- Ready-to-use frontend: built-in inventory of 115 characters for processing Chinese phonetics and homophones.
What you can do
- Script integration: run speech generation for Chinese texts via Python code or the command line.
- Fine-tuning: adjust speech speed, shift, and pitch range using command line parameters.
- Local deployment: deploy a lightweight text-to-speech service on local hardware with minimal VRAM requirements.
Example
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")
wave, _ = speak_text(model, "她在笔记本上写下一行字:明天会更好。", "F")
sf.write("out.wav", limit_peak(wave).numpy(), model.config.sample_rate, subtype="FLOAT")
Read more
DetailsCER (character error rate according to Paraformer ASR) benchmarks: general student — 2.16%, voice F — 2.52%, voice M — 1.80%, teacher (Qwen3-TTS-12Hz-1.7B) — 1.40%.
Training: trained from scratch on 22,298 synthesized sentences (~23.6 hours).
Limitations: supports reading text only with fixed voices, does not control emotions and speech style.
License: Apache-2.0.










Comments