Skip to content

feat: Add --phonemes pronunciation markup support - #81

Open
jaggzh wants to merge 10 commits into
nazdridoy:mainfrom
jaggzh:feature/pronunciation-syntax
Open

jaggzh wants to merge 10 commits into
nazdridoy:mainfrom
jaggzh:feature/pronunciation-syntax

Conversation

@jaggzh

@jaggzh jaggzh commented Mar 19, 2026

Copy link
Copy Markdown

feat: Add --phonemes pronunciation markup support

  • [feat] Add --phonemes flag to enable word syntax
  • [feat] Add pronunciation markdown parsing and conversion logic
  • [add] Add utils/kokoro-phonemize.py heteronym lookup utility
  • [docs] Document pronunciation syntax and helper in README
  • [fix] Use SUPPORTED_LANGUAGES constant directly (get_languages removed in kokoro-onnx cc38152ac)
  • [build] Relax Python upper bound to <3.13.6 in pyproject.toml
  • [remove] Remove requirements.txt (superseded by pyproject.toml)

Relates to #65

Example use of the markdown syntax:

$ echo "It's [beautiful](/bjˈuɾɪfᵊl/)" | kokoro-tts - --stream --phonemes

Important note:

[EDIT]: kokoro-onnx dropped the supported languages and get_languages() calls. This required an old dependency (kokoro-onnyx==0.3.9); However, in my recent update I just implemented the list of languages in kokoro-tts, since it's almost no code needed to prevent being reliant on some old dependency.

Screenshot

Screenshot_20260319_140433

jaggzh added 10 commits March 8, 2026 06:27
…tion util script added -- utils/kokoro-phonemize.py -- to assist with obtaining pronunciations according to the Misaki alphabet.

There's one issue I'm not sure how to address:

- kokoro-onnx removed the supported languages code which causes an incompatibility with the latest version, but otherwise kokoro-onnx main seems perfectly compatible with kokoro-tts.
…ation helper script added -- utils/kokoro-phonemize.py -- to assist with obtaining pronunciations according to the Misaki alphabet.

There's one issue I'm not sure how to address:

- kokoro-onnx removed the supported languages code which causes an incompatibility with the latest version, but otherwise kokoro-onnx main seems perfectly compatible with kokoro-tts.
…versions, I incorated a list of them directly.
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