[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-84055-en":3,"doc-seo-84055-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":13,"seo_description":14,"update_tm":28,"read_time":29},84055,1374391975076,"Riley","https://ap-avatar.wpscdn.com/avatar/14000253ca4ec9f6853?x-image-process=image/resize,m_fixed,w_180,h_180&k=1783305029341752051",8,"Research & Report","BlueMagpie TTS：Token高效分词、语言模型与台语口音代码切换语音合成","Off-the-shelf text-to-speech systems struggle with Taiwanese Mandarin because their accent suits other Mandarin variants, their tokenizers over-segment common Taiwan-specific text, and pronunciation degrades at code-switching boundaries between Chinese and English. This work adapts the text side bottom up with PangolinTokenizer, a byte-level BPE tokenizer trained on Taiwan-context data. It achieves the lowest token rate (0.485 tokens/character) and smallest vocabulary among compared tokenizers. Barbet, a billion-parameter Traditional-Chinese LM trained on PangolinTokenizer, leads on a 14-task evaluation and enables BlueMagpie-TTS. A learned bridge connects Barbet to a reused VoxCPM2 acoustic stack, and joint fine-tuning yields lower CER and preferred listening votes.","BlueMagpie-TTS: A Token-Efficient Tokenizer, Language Model, and TTS for Taiwanese-Accent  \nCode-Switching Speech  \nHo-Lam Chung, Bo-Xuan Zheng†, Cheng-Chieh Huang†, Cheng-Han Chang†, Jung-Ching Chen†, Lok-Lam Ieong†, Ting-Lin Hsiao†, Yu-Cheng Lee†, Yi-Hsin Chung†, Yu-Kai Guo†, Hung-yi Lee  \nNational Taiwan University  \narXiv :2607 .06054v 1 [ cs . SD] 7 Jul 2026  \nAbstract—Off-the-shelf TTS systems are poorly adapted to Taiwanese Mandarin. Their accent defaults to other Mandarin variants, their tokenizers over-segment common Taiwanese text, and their pronunciation degrades at code-switching boundaries where Chinese and English alternate within one utterance. These problems share one root: the text side lacks adaptation to the Taiwanese context. We address the text side from the bottom up. PangolinTokenizer, a byte-level BPE tokenizer trained on Taiwancontext data, reaches the lowest token rate (0.485 tokens/character) with the smallest vocabulary among eight tokenizers. Barbet, a billion-parameter Traditional-Chinese language model trained on PangolinTokenizer, serves as the text-semantic frontend and ranks first among the compared billion-parameter models on a 14-task evaluation. BlueMagpie-TTS attaches Barbet to thepretrained acoustic stack of VoxCPM2 through a learned bridge, then jointly fine-tunes the assembled model on target-voice speech. On a 1,000-sentence Taiwan-localized test set, it lowers CER from 11.45% to 4.81% . It stays 25.2% below a baseline that fine-tunes the same acoustic stack to the target voice, so the gain comes from the frontend, not from voice adaptation. In a blind listening study on 500 of these sentences with ten listeners, 65.6% of majority votes prefer BlueMagpie-TTS.  \nIndex Terms—text-to-speech, tokenization, code-switching, Taiwanese Mandarin, speech language model  \nI. INTRODUCTION  \nNeural TTS now produces near-human speech for major languages on standard reading benchmarks [1]–[4] . Most of these systems, however, are poorly adapted to Taiwanese Mandarin. Their accent defaults to other regional Mandarin variants, and Taiwanese listeners perceive the mismatch immediately. Their text side is not trained on the terms and writing conventions common in Taiwan, so the model has limited capacity for local usage. These two gaps, the accent and the text representation, reduce the naturalness of off-the-shelf TTS for Taiwanese Mandarin speakers.  \nThe text side is where the problem starts. Most TTS systems build on a general multilingual tokenizer [5] . Such a tokenizer represents Taiwan-context text losslessly, but it often fragments common terms into many tokens [6] . A term such as 半導體 costs one token under a Taiwan-context tokenizer, but several under a general multilingual one. Figure 2 shows the effect  \n†Equal contribution.  \non one sentence. The fragmentation wastes sequence length, raises inference cost, and means the language model trains on a longer, noisier representation of the same content.  \nCode-switching makes it worse. A single spoken sentence in Taiwan often mixes Mandarin with English words, abbreviations, and proper nouns. A speaker says 我用 Transformer 訓練模型, one Mandarin sentence with an English word in the middle. At the switch point, the tokenizer fragments the boundary, the language model cannot plan the prosody transition, and the TTS distorts the English span or breaks the surrounding Mandarin prosody. Chinese–English mixing is common in education, technology, and media, so these failures are not rare.  \nFixing these problems requires adapting the text side from the bottom up. The first step is a tokenizer trained on Taiwancontext text, so that common terms stay as single tokens and the sequence is short. The second step is a language model trained on this tokenizer, so that the model understands Taiwanese usage and can plan prosody across code-switching boundaries. The third step is connecting this frontend to a TTS acoustic stack, so that the accent and the switch points","cbCaisllMaIvQHLe","https://ap.wps.com/l/cbCaisllMaIvQHLe","pdf",386667,5,1,9,"English","en",105,"# Introduction\n## Motivation: accent and text-side mismatch for Taiwanese Mandarin\n## Token fragmentation and its consequences\n## Code-switching challenges at boundaries\n## Bottom-up adaptation strategy\n# Contributions overview\n## PangolinTokenizer and PangolinBench\n## Barbet language model\n## BlueMagpie-TTS system","[{\"question\":\"为什么现成的 TTS 系统不适配台湾口音的台语/普通话？\",\"answer\":\"文中指出现成系统的口音与台湾普通话不匹配、文本端分词对台湾文本过度切分，并且在中文与英文交替的代码切换边界处发音会退化。根因在于文本侧缺少对台湾语境的适配。\"},{\"question\":\"PangolinTokenizer 如何改善台湾语境文本的分词效率？\",\"answer\":\"PangolinTokenizer 使用基于字节的 BPE，并在台湾语境数据上训练，使常见台湾相关术语更可能作为单个 token，从而显著降低 token 数率，并在对比中达到最低 token rate（0.485 tokens/character）与最小词表。\"},{\"question\":\"BlueMagpie-TTS 的整体构建思路是什么？\",\"answer\":\"系统将 Barbet 作为文本语义前端，通过学习到的桥接模块接入复用的 VoxCPM2 声学堆栈，并对拼接后的模型在目标说话人语音上联合微调。实验表明改进主要来自前端（分词与语言模型）而非仅做声学侧的语音适配。\"}]",1784192268,23,{"code":4,"msg":31,"data":32},"ok",{"site_id":25,"language":24,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"bluemagpie-tts-a-token-efficient-tokenizer-language-model-and-tts-for-taiwanese-accent-code-switching-speech","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/bluemagpie-tts-a-token-efficient-tokenizer-language-model-and-tts-for-taiwanese-accent-code-switching-speech/84055/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":24,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-07-24","2026-07-16",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"为什么现成的 TTS 系统不适配台湾口音的台语/普通话？","Question",{"text":76,"@type":77},"文中指出现成系统的口音与台湾普通话不匹配、文本端分词对台湾文本过度切分，并且在中文与英文交替的代码切换边界处发音会退化。根因在于文本侧缺少对台湾语境的适配。","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"PangolinTokenizer 如何改善台湾语境文本的分词效率？",{"text":81,"@type":77},"PangolinTokenizer 使用基于字节的 BPE，并在台湾语境数据上训练，使常见台湾相关术语更可能作为单个 token，从而显著降低 token 数率，并在对比中达到最低 token rate（0.485 tokens/character）与最小词表。",{"name":83,"@type":74,"acceptedAnswer":84},"BlueMagpie-TTS 的整体构建思路是什么？",{"text":85,"@type":77},"系统将 Barbet 作为文本语义前端，通过学习到的桥接模块接入复用的 VoxCPM2 声学堆栈，并对拼接后的模型在目标说话人语音上联合微调。实验表明改进主要来自前端（分词与语言模型）而非仅做声学侧的语音适配。","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":93},[94,98,102,106,110,115,120,123,127,130,134],{"id":21,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":20,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":22,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":125,"slug":126},"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":20,"slug":137},19,"General","general"]