Skip to content

feat: implement Chinese G2P (misaki-zh) in Swift#9

Open
krmanik wants to merge 8 commits into
mlalma:mainfrom
krmanik:main
Open

feat: implement Chinese G2P (misaki-zh) in Swift#9
krmanik wants to merge 8 commits into
mlalma:mainfrom
krmanik:main

Conversation

@krmanik

@krmanik krmanik commented Feb 20, 2026

Copy link
Copy Markdown

Port the Kokoro Chinese text-to-speech grapheme-to-phoneme pipeline to
Swift

Core modules:

  • ZHG2P: Main Chinese G2P engine converting text to IPA phonemes
  • ZHFrontend: Segmentation, pinyin lookup, tone sandhi, and erhua handling
  • ToneSandhi: Chinese tone sandhi rules (不/一/三声/轻声)
  • PinyinFinder: DP-based dictionary pinyin lookup with phrase support
  • JiebaWrapper: Swift wrapper over cppjieba C++ segmentation library
  • StringUtils: Number-to-Chinese conversion utilities

Port the Kokoro Chinese text-to-speech grapheme-to-phoneme pipeline to
Swift

- used reference
- https://github.com/hexgrad/misaki
- https://github.com/koth/kokoro.cpp

Core modules:
- ZHG2P: Main Chinese G2P engine converting text to IPA phonemes
- ZHFrontend: Segmentation, pinyin lookup, tone sandhi, and erhua handling
- ToneSandhi: Chinese tone sandhi rules (不/一/三声/轻声)
- PinyinFinder: DP-based dictionary pinyin lookup with phrase support
- JiebaWrapper: Swift wrapper over cppjieba C++ segmentation library
- StringUtils: Number-to-Chinese conversion utilities
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