Commit 23b2422
Jason Roche
Add Kannada (kn-IN) G2P support for TTS
- 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>1 parent 8e2905c commit 23b2422
4 files changed
Lines changed: 4955 additions & 1 deletion
File tree
- nemo/collections
- common/tokenizers/text_to_speech
- tts/g2p/models
- scripts/tts_dataset_files/kn_IN
- tests/collections/common/tokenizers/text_to_speech
Lines changed: 58 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
110 | 135 | | |
111 | 136 | | |
112 | 137 | | |
| |||
183 | 208 | | |
184 | 209 | | |
185 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
186 | 235 | | |
187 | 236 | | |
188 | 237 | | |
| |||
347 | 396 | | |
348 | 397 | | |
349 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
350 | 407 | | |
351 | 408 | | |
0 commit comments