Repository navigation
Preserve Japanese text during Chinese-script normalization - #1326
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Japanese text such as
日本語was converted to日本语before Audio8 synthesis, even withlanguage=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:
jaandautoWAVs match the existingyuenormalization-bypass output byte-for-byte. Mandarin and Cantonese control WAVs remain byte-identical to the original-helper outputs.Closes #1325.