Skip to content

kokoro: unidic-lite trim + MeCab reference reader for the Swift Japanese frontend (FluidAudio #914) - #90

Open
Alex-Wengg wants to merge 1 commit into
mainfrom
feat/kokoro-ja-unidic-trim
Open

Alex-Wengg wants to merge 1 commit into
mainfrom
feat/kokoro-ja-unidic-trim

Conversation

@Alex-Wengg

Copy link
Copy Markdown
Member

Companion to FluidInference/FluidAudio#915.

models/tts/kokoro/coreml/g2p/japanese/:

  • convert_unidic_lite.py rewrites unidic-lite's MeCab dictionary feature strings to pos1,pron,kana (188 MB → 41 MB) while keeping the double array and token table byte-for-byte, and applies the same trim to unk.dic; matrix.bin and char.bin are copied.
  • mecab_reference.py is a pure-Python reader of the MeCab binary layout with a MeCab-style Viterbi; it prints SAME/DIFF per sentence against fugashi so a trimmed dictionary can be validated before publishing. The Swift JapaneseTokenizer in FluidAudio mirrors it.
  • README.md documents the build, validation and publication (FluidInference/kokoro-82m-coreml/ANE-ja/assets/, uploaded as HF commit c9fdfdac).

@Alex-Wengg Alex-Wengg closed this Sep 13, 2026
@Alex-Wengg
Alex-Wengg force-pushed the feat/kokoro-ja-unidic-trim branch from 0dc0a07 to 4040a39 Compare September 13, 2026 17:49
…ese frontend (FluidAudio #914)

convert_unidic_lite.py rewrites unidic-lite's feature strings to pos1,pron,kana
(188 MB -> 41 MB) keeping the double array and token table intact;
mecab_reference.py validates the trimmed dictionary against fugashi.
@Alex-Wengg Alex-Wengg reopened this Sep 13, 2026
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.

1 participant