Repository navigation
Fix MOSS-Nano CJK chunking for supplementary ideographs - #1036
Merged
Merged
Conversation
Decode validated four-byte UTF-8 characters when selecting the default MOSS-TTS-Nano text chunk size. Supplementary CJK ideographs, including Extensions B and G, now count toward the CJK majority and receive the 50-codepoint budget instead of incorrectly falling back to 256. Move the heuristic into a small detail helper and add regression coverage for supplementary and BMP CJK text, Latin text, and malformed UTF-8. Register the test only when the MOSS model is linked. Validation on the Intel Core Ultra 7 265K and AMD Radeon RX 9070 XT (gfx1201, ROCm 7.2.4): Release HIP build of the MOSS model, CLI, and regression test completed; the regression test passed; an actual HIP TTS run with the MOSS-Nano Q8_0 model completed successfully, selected text_chunk_size=50 for Chinese input, stopped at EOC, and wrote a 5.12-second 48 kHz stereo WAV. The model and build artifacts used for validation were stored under /tmp/audio-cpp-test-models and /tmp/audio-cpp-moss-cjk-build.
0xShug0
marked this pull request as ready for review
October 21, 2026 23:52
Owner
|
@ZeroDot1 Thanks! The fix is narrowly scoped. Merged. |
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.
Decode validated four-byte UTF-8 characters when selecting the default MOSS-TTS-Nano text chunk size. Supplementary CJK ideographs, including Extensions B and G, now count toward the CJK majority and receive the 50-codepoint budget instead of incorrectly falling back to 256.
Move the heuristic into a small detail helper and add regression coverage for supplementary and BMP CJK text, Latin text, and malformed UTF-8. Register the test only when the MOSS model is linked.
Validation on the Intel Core Ultra 7 265K and AMD Radeon RX 9070 XT (gfx1201, ROCm 7.2.4): Release HIP build of the MOSS model, CLI, and regression test completed; the regression test passed; an actual HIP TTS run with the MOSS-Nano Q8_0 model completed successfully, selected text_chunk_size=50 for Chinese input, stopped at EOC, and wrote a 5.12-second 48 kHz stereo WAV.
The model and build artifacts used for validation were stored under /tmp/audio-cpp-test-models and /tmp/audio-cpp-moss-cjk-build.