Ruby-OPD: Enhancing Pronunciation Controllability and Accuracy for Flow-Matching Text-to-Speech via On-Policy Distillation

Rui Hu, Xiaolong Lin, Zhenpeng ZhanarXiv 2026

TL;DR

Ruby-OPD is a two-stage framework that solves the "polyphony problem" in Japanese text-to-speech (TTS) by combining explicit pronunciation control with high-accuracy raw-text inference. By using Ruby text representations with orthography perturbation and a novel On-Policy Distillation (OPD) method, the authors achieve state-of-the-art pronunciation accuracy (97.13%) on unannotated text while allowing users to precisely override pronunciations when needed.

What Problem Does This Paper Address?

Japanese is a nightmare for TTS systems. It is an unsegmented language that mixes logographic Kanji (where characters represent meanings) and phonographic Kana (where characters represent sounds). The core challenge is polyphony: a single Kanji character can have wildly different pronunciations depending on context, morphology, or even stylistic choice (a phenomenon called Gikun).

For example, the word for "autumn" (秋) is usually pronounced aki, but in a compound like "late autumn" (晩秋), it becomes shū. In creative works, authors might even assign a completely non-standard pronunciation to a word for dramatic effect.

Traditional TTS systems use a "front-end" to convert text to phonemes first. This gives control but loses the semantic and prosodic cues hidden in the original Kanji. Modern "zero-shot" models often ingest raw text directly to sound more natural, but they frequently hallucinate pronunciations for rare words and offer no way for a user to "fix" a mispronunciation.

Methods

The authors propose a two-stage approach to bridge the gap between controllability and raw-text accuracy.

1. Ruby Representations & Orthography Perturbation

The researchers first enable the model to understand Ruby text—a standard Japanese typographic convention where small Kana (pronunciation guides) are placed next to Kanji. They explore two formats:

  • Implicit Ruby: Kanji (Kana) — natural for human typing.
  • Explicit Ruby: |Kanji《Kana》 — uses boundary markers to eliminate ambiguity in unsegmented text.
Table 1: An example of orthographic text, implicit Ruby, and explicit Ruby. |, 《, and 》denote the start of the target word, and the start and end of the target pronunciation in explicit Ruby, respectively.

To ensure the model actually listens to these tags rather than just relying on its pre-trained knowledge of Kanji glyphs, they use Orthography Perturbation. During training, they stochastically mask Kanji, substitute them with random characters, or replace them with semantically similar words that have different pronunciations. This forces the model to rely on the Ruby tags for the final audio output.

2. On-Policy Distillation (OPD)

While Ruby tags provide control, most real-world text is unannotated. To improve accuracy on raw text, the authors use On-Policy Distillation.

  • Teacher: A frozen model that receives text with full Ruby annotations (the "ground truth" pronunciation).
  • Student: A model that receives only the raw orthographic text.
  • Process: The student generates an audio trajectory (rollout) from noise. It is then trained to match the "velocity field" (the direction of audio generation in flow-matching) of the teacher. This allows the student to "distill" the teacher's pronunciation knowledge into its own context-aware text encoder using massive amounts of text-only data, without needing paired audio.

Datasets

  • SFT Stage: 774 hours of high-quality Japanese speech from the Emilia dataset, aligned using a cross-modal verification approach (audio-to-Kana transcription matched against a dictionary lattice).
  • OPD Stage: 780k LLM-synthesized sentences (680k monophonic, 100k polyphonic) to provide diverse linguistic contexts.
  • Evaluation: The Joyo-Kanji-Yomi benchmark (JKYB), which covers 2,136 regular-use Kanji and over 4,500 official pronunciations.
  • Speech Quality: Evaluated using the JVS corpus (100 speakers).

Key Insights and Ideas

  • The "Lazy Model" Problem: Simply adding Ruby tags isn't enough. Because pre-trained models are already quite good at Kanji, they often ignore the tags. Orthography perturbation is the essential "nudge" that makes the model controllable.
  • Semantics vs. Phonetics: The paper proves that stripping Kanji (converting everything to Kana) actually hurts performance (see Table 3). Kanji provide crucial lexical boundaries that help the model understand the prosody and rhythm of a sentence.
  • Distillation without Audio: OPD is a powerful way to leverage the reasoning capabilities of Large Language Models (LLMs). By using an LLM to generate "correct" pronunciations for text-only data, the TTS model can learn to disambiguate polyphones far better than it could from audio-paired data alone.

Key Results

The Ruby-OPD model significantly outperforms both general multilingual models and specialized Japanese baselines.

  • Pronunciation Accuracy: On raw text, the model achieved 97.13% accuracy, a significant jump over the base model's 94.11% and far ahead of models like Qwen3-TTS (72.10%).
  • Error Rates: It cut the Target Phoneme Error Rate (PER) by more than half compared to the base model (4.68% → 2.02%).
  • Controllability: As shown in the table below, using Explicit Ruby tags (Full Expl.) brings accuracy up to 98.24%, demonstrating near-perfect adherence to user-provided guides.
Table 2: Comparison of pronunciation accuracy, speech quality, and voice cloning performance on the Joyo-Kanji-Yomi benchmark (JKYB) using JVS reference audio prompts. All models directly consume unannotated raw orthographic text at inference time.
Detailed breakdown of controllability metrics for SFT and OPD stages.

Limitations and Future Work

  • Data Quality: The authors noted that the Supervised Fine-Tuning (SFT) stage saw a slight dip in raw-text accuracy initially, likely due to the limited scale and recording quality of the Emilia corpus compared to the massive pre-training data of the base model.
  • Prosody Control: While the model masters what to say (pronunciation), the paper doesn't deeply explore fine-grained control over how to say it (pitch, emphasis, or specific regional accents), which are also critical in Japanese.
  • Language Expansion: The framework is currently Japanese-specific. Future work could explore if similar "Ruby-like" structures could help in other logographic or highly polyphonic languages like Chinese or Thai.

Summary updated

Abstract

Achieving both high pronunciation accuracy and fine-grained controllability remains a central challenge in Japanese text-to-speech (TTS), as Japanese is an unsegmented language mixing logographic Kanji and phonographic Kana with extensive polyphony. Traditional cascaded systems convert text into phoneme sequences via a front-end, ensuring pronunciation control but discarding lexical semantics and prosodic cues in surface orthography. Conversely, recent zero-shot TTS models directly consume raw orthographic text to improve naturalness, yet suffer from polyphone errors and lack explicit pronunciation control. To bridge this gap, we propose a two-stage framework for flow-matching TTS. First, we investigate Ruby text representations with orthography perturbation to jointly preserve surface forms and target pronunciations for reliable control. Second, we introduce On-Policy Distillation (OPD) on large-scale text-only corpora to enhance pronunciation accuracy on raw orthographic text without paired speech. On the Joyo-Kanji-Yomi benchmark, our model achieves 97.13% Accuracy, 2.02% Target PER, 0.70% Sentence PER, and 4.21% Sentence CER under raw text while retaining strong controllability.
BibTeX
@misc{hu2026ruby,
  author = {Rui Hu and Xiaolong Lin and Zhenpeng Zhan},
  title = {{Ruby-OPD: Enhancing Pronunciation Controllability and Accuracy for Flow-Matching Text-to-Speech via On-Policy Distillation}},
  year = {2026},
  eprint = {2611.06403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06403},
}
Figure