Voice ML: Mandarin TTS
Voice ML is my text-to-speech pipeline for Mandarin. I fine-tune GPT-SoVITS voice models on open speech corpora on an RTX 4060. The pipeline then voices the 18 multi-speaker dialogues and 560 vocabulary words in my Chinese course notes.
Hear the progress
Section titled “Hear the progress”Every stage below reads the same sentences with the same seed and sampling settings, so the only thing that changes is the model. Pick a sentence and compare.
你好,今天过得开心吗?
Hi, did you have a good day today?
老李想买两把好看的雨伞,可以陪小吕一起去展览馆选购。
Old Li wants to buy two nice umbrellas and can go and pick them out at the exhibition hall with Little Lü. (Full of third tones that change pitch next to each other.)
这道特色菜既保留了传统风味,又融合了创新的烹饪工艺,味道确实不同凡响。
This signature dish keeps its traditional flavour while blending in new cooking techniques; it really tastes extraordinary.
Baseline
base v2ProPlusThe pretrained GPT-SoVITS model with no training. It imitates the voice from a single short reference clip (zero-shot).
First fine-tune
female_v3Fine-tuned on studio recordings from the CSMSC corpus.
Second fine-tune
female_v4Retrained on an expanded 7.5-hour CSMSC set.
Current
female_zh_c1My newest model, fine-tuned on AISHELL-3, an openly licensed corpus that also allows commercial use.
How it works
Section titled “How it works”- Data: Clean single-speaker recordings with transcripts, sliced into short clips and normalised.
- Fine-tuning: Both halves of GPT-SoVITS are trained: the GPT model (what to say, prosody) and the SoVITS model (how it sounds).
- Evaluation gate: A fixed set of test sentences is synthesised and transcribed with Whisper large-v3. A checkpoint only replaces the previous one if its character error rate holds up.
- Synthesis: A batch client renders dialogues with several speakers at normal and study speed, with word-level timestamps for the dialogue player.
Data and licences
Section titled “Data and licences”- CSMSC (Data-Baker) was used for the first and second fine-tune. Its licence allows non-commercial use only, so these samples are shown only to document the training history.
- AISHELL-3 (Apache-2.0) is used for the current voice. Chinesische Aussprache basiert auf AISHELL-3 Sprachkorpus (Apache-2.0 Lizenz).
- The test sentences are self-written and not taken from any textbook.