BlueMagpie-TTS: A Token-Efficient Tokenizer, Language Model, and TTS for Taiwanese-Accent Code-Switching Speech
Summary
BlueMagpie-TTS is a novel text-to-speech system designed to overcome the limitations of off-the-shelf TTS for Taiwanese Mandarin, particularly its accent, tokenization, and code-switching performance. The system addresses these issues by adapting the text side from the ground up. It incorporates PangolinTokenizer, a byte-level BPE tokenizer trained on Taiwan-context data, achieving a low token rate of 0.485 tokens/character. Barbet, a billion-parameter Traditional-Chinese language model trained with PangolinTokenizer, serves as the text-semantic frontend, outperforming comparable public models on a 14-task evaluation. BlueMagpie-TTS integrates Barbet with the pretrained VoxCPM2 acoustic stack via a learned bridge. This approach reduced Character Error Rate from 11.45% to 4.81% and Word Error Rate from 14.83% to 5.36% on a 1000-sentence Taiwanese test set. A blind listening study showed 65.6% preference for BlueMagpie-TTS.
Key takeaway
For NLP Engineers or ML Engineers developing TTS systems for regional language variants or code-switching speech, you should prioritize deep adaptation of the text-side components. Investing in custom tokenizers trained on context-specific data and specialized language models, as demonstrated by BlueMagpie-TTS, can significantly improve accuracy and naturalness. This approach allows you to achieve superior performance in challenging linguistic contexts without retraining the entire acoustic stack.
Key insights
Tailoring text-side components like tokenizers and language models to specific linguistic contexts dramatically improves TTS performance.
Principles
- Context-specific data improves tokenization efficiency
- Specialized LMs enhance regional language understanding
Method
Train a byte-level BPE tokenizer on target-language data, then a large language model using this tokenizer, and finally connect it to a pre-trained acoustic model via a learned bridge.
In practice
- Train custom tokenizers on regional text data
- Develop LMs for specific language variants
- Integrate specialized text frontends with existing acoustic stacks
Topics
- BlueMagpie-TTS
- Text-to-Speech
- Taiwanese Mandarin
- Code-Switching
- Tokenization
- Language Models
Best for: Research Scientist, AI Scientist, NLP Engineer, Machine Learning Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Computation and Language.