Modules§
- espeak
- Per-word espeak-ng fallback phonemizer, ported from misaki’s
espeak.py. - lexicon
- number
- stress
- Phoneme stress constants and the
apply_stressfunction, ported from misaki’sen.py. - tagger
- Averaged perceptron POS tagger.
- token
- tokenizer
- Tokenizer for English G2P.
Structs§
- G2P
- The main G2P pipeline, ported from misaki’s
en.G2P.__call__(). - G2PConfig
- Configuration for external tool paths used by the G2P pipeline.
Enums§
Functions§
- english_
to_ phonemes - Convert English text to a Kokoro-compatible phoneme string.
- english_
to_ phonemes_ with_ overrides - Convert English text to phonemes with custom word overrides.
- espeak_
ipa_ to_ kokoro - Post-process espeak-ng IPA output into Kokoro phoneme format.
- text_
to_ phoneme_ chunks - Split text into chunks whose phoneme representations fit within the model’s 510-character context limit.
- text_
to_ phoneme_ chunks_ with_ overrides - Split text into chunks whose phoneme representations fit within the model’s 510-character context limit, with custom word-to-phoneme overrides.