Skip to content

Add Kannada (kn-IN) G2P support for TTS#15582

Open
jasro23 wants to merge 2 commits intoNVIDIA-NeMo:mainfrom
jasro23:kannada_g2p
Open

Add Kannada (kn-IN) G2P support for TTS#15582
jasro23 wants to merge 2 commits intoNVIDIA-NeMo:mainfrom
jasro23:kannada_g2p

Conversation

@jasro23
Copy link
Copy Markdown
Contributor

@jasro23 jasro23 commented Apr 3, 2026

  • Add KannadaG2p class with hybrid dictionary + rule-based IPA conversion
  • Add Kannada grapheme and IPA character sets to ipa_lexicon.py
  • Add kn-IN locale support with punctuation handling
  • Include lexicon with 4K Kannada words
  • Add test script with assertions for validation

The G2P module handles:

  • All Kannada vowels, consonants, matras (dependent vowels)
  • Virama (halant), anusvara, visarga
  • Anusvara place assimilation based on following consonant

Important

The Update branch button must only be pressed in very rare occassions.
An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.

What does this PR do ?

Add Kannada (kn-IN) G2P support for TTS

Collection: [TTS]

Changelog

  • Add KannadaG2p class in nemo/collections/tts/g2p/models/kn_in_ipa.py for Kannada grapheme-to-phoneme conversion
  • Add Kannada grapheme and IPA character sets to ipa_lexicon.py
  • Add kn-IN to supported locales with Kannada-specific punctuation
  • Add pronunciation dictionary with 4264 Kannada words (kn_IN_nv260318.dict)
  • Add Kannada G2P unit tests to test_tts_tokenizers.py

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

Before your PR is "Ready for review"

Pre checks:

  • [ *] Make sure you read and followed Contributor guidelines
  • [ *] Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • [* ] New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

- Add KannadaG2p class with hybrid dictionary + rule-based IPA conversion
- Add Kannada grapheme and IPA character sets to ipa_lexicon.py
- Add kn-IN locale support with punctuation handling
- Include lexicon with 4264 Kannada words
- Add test script with assertions for validation

The G2P module handles:
- All Kannada vowels, consonants, matras (dependent vowels)
- Virama (halant), anusvara, visarga
- Anusvara place assimilation based on following consonant

Signed-off-by: Jason Roche <jas.tech23@gmail.com>
Signed-off-by: jasro23 <jasro23@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant