Skip to content

Preserve Japanese text during Chinese-script normalization - #1326

Merged
0xShug0 merged 1 commit into
mainfrom
fix/japanese-chinese-normalization-1325
Nov 17, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/japanese-chinese-normalization-1325

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Japanese text such as 日本語 was converted to 日本语 before Audio8 synthesis, even with language=ja. The shared normalizer treated every non-Cantonese language as Chinese.

Preserve explicit non-Chinese language hints, and preserve kana-containing text when the language is omitted or automatic. Keep Mandarin conversion and Cantonese preservation. Route optional language hints through the same policy so offline text, reference transcripts and streaming chunks receive consistent handling. The unconditional conversion API is unchanged.

Kanji-only Japanese remains ambiguous under auto; use language=ja. Update Audio8/VoxCPM documentation and option descriptions accordingly.

Validation:

  • Added a framework unit test that reproduces the original Japanese conversion failure and passes with the fix. Covers explicit languages, optional/auto hints, kana forms, kanji-only ambiguity, Mandarin, Cantonese and the unconditional converter.
  • Model-spec system tests pass.
  • Audio8 Realistic 0.6B Q8_0 on CUDA, eight threads, seed 42: all 10 offline/streaming comparisons pass. Japanese ja and auto WAVs match the existing yue normalization-bypass output byte-for-byte. Mandarin and Cantonese control WAVs remain byte-identical to the original-helper outputs.
  • Multi-chunk streaming exercises five Japanese chunks and two chunks per Chinese control; corresponding stream events match exactly.

Closes #1325.

@0xShug0
0xShug0 merged commit a6e3221 into main Nov 17, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/japanese-chinese-normalization-1325 branch November 17, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audio8_tts: Japanese text is converted to Simplified Chinese, so kanji get Chinese readings

1 participant