| 1 |
|
| 2 |
//==================================================== |
| 3 |
// Base for Hindi and other Indian languages |
| 4 |
//==================================================== |
| 5 |
|
| 6 |
phoneme : // Lengthen the previous vowel by "length" |
| 7 |
virtual |
| 8 |
length 100 |
| 9 |
endphoneme |
| 10 |
|
| 11 |
phoneme @ |
| 12 |
vwl flag1 starttype #@ endtype #@ |
| 13 |
length 130 |
| 14 |
|
| 15 |
ChangeIfDiminished(@-) |
| 16 |
IF nextPh(H) OR prevPh(H) THEN |
| 17 |
FMT(vowel/@_low) |
| 18 |
ENDIF |
| 19 |
IF nextPh(j) THEN |
| 20 |
FMT(vowel/V_3) |
| 21 |
ENDIF |
| 22 |
FMT(vowel/@_bck) |
| 23 |
endphoneme |
| 24 |
|
| 25 |
|
| 26 |
phoneme V |
| 27 |
vwl flag1 starttype #@ endtype #@ |
| 28 |
length 140 |
| 29 |
|
| 30 |
IF thisPh(isWordStart) THEN |
| 31 |
FMT(vowel/V_3) |
| 32 |
RETURN |
| 33 |
ENDIF |
| 34 |
|
| 35 |
IF thisPh(isNotStressed) THEN |
| 36 |
length 130 |
| 37 |
|
| 38 |
IF thisPh(isWordEnd) AND NOT thisPh(isFirstVowel) THEN |
| 39 |
ChangePhoneme(NULL) |
| 40 |
ENDIF |
| 41 |
|
| 42 |
IF prevPh(H) THEN |
| 43 |
ChangePhoneme(@) |
| 44 |
ENDIF |
| 45 |
|
| 46 |
IF prev2PhW(isVowel) AND NOT nextVowel(isFlag1) THEN |
| 47 |
IF thisPh(isFinalVowel) AND nextPhW(isNotVowel) THEN |
| 48 |
// don't delete schwa before a word-final consonant |
| 49 |
ELSE |
| 50 |
ChangePhoneme(NULL) |
| 51 |
ENDIF |
| 52 |
ENDIF |
| 53 |
|
| 54 |
IF prevPh(isPalatal) AND NOT nextPh(H) THEN |
| 55 |
ChangePhoneme(@3) |
| 56 |
ELSEIF prevPh(r) THEN |
| 57 |
ChangePhoneme(@2) |
| 58 |
ELSE |
| 59 |
ChangePhoneme(@) |
| 60 |
ENDIF |
| 61 |
ENDIF |
| 62 |
|
| 63 |
IF nextPh(H) OR prevPh(H) THEN |
| 64 |
FMT(vowel/@_low) |
| 65 |
ENDIF |
| 66 |
|
| 67 |
IF prevPh(w) THEN |
| 68 |
FMT(vowel/V_4) |
| 69 |
ENDIF |
| 70 |
|
| 71 |
FMT(vowel/V_3) |
| 72 |
endphoneme |
| 73 |
|
| 74 |
|
| 75 |
phoneme @2 |
| 76 |
vwl flag1 starttype #@ endtype #@ |
| 77 |
length 130 |
| 78 |
FMT(vowel/@_low) |
| 79 |
endphoneme |
| 80 |
|
| 81 |
phoneme @3 |
| 82 |
vwl flag1 starttype #@ endtype #@ |
| 83 |
length 130 |
| 84 |
ChangeIfDiminished(@-) |
| 85 |
FMT(vowel/@_3) |
| 86 |
endphoneme |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
phoneme i: |
| 92 |
vwl lng starttype #i endtype #i |
| 93 |
length 230 |
| 94 |
IF thisPh(isUnstressed) THEN |
| 95 |
ChangePhoneme(i) |
| 96 |
ENDIF |
| 97 |
IfNextVowelAppend(;) |
| 98 |
FMT(vowel/i_fnt) |
| 99 |
endphoneme |
| 100 |
|
| 101 |
phoneme i // as [i:] but not marked as 'long' |
| 102 |
vwl starttype #i endtype #i |
| 103 |
length 230 |
| 104 |
IfNextVowelAppend(;) |
| 105 |
FMT(vowel/ii_6) |
| 106 |
endphoneme |
| 107 |
|
| 108 |
phoneme I |
| 109 |
vwl starttype #i endtype #i |
| 110 |
length 100 |
| 111 |
IfNextVowelAppend(;) |
| 112 |
FMT(vowel/ii_3) |
| 113 |
endphoneme |
| 114 |
|
| 115 |
phoneme e: |
| 116 |
vwl lng starttype #e endtype #e |
| 117 |
length 220 |
| 118 |
FMT(vowel/e_2) |
| 119 |
endphoneme |
| 120 |
|
| 121 |
phoneme e |
| 122 |
vwl starttype #e endtype #e |
| 123 |
length 140 |
| 124 |
FMT(vowel/e_2) |
| 125 |
endphoneme |
| 126 |
|
| 127 |
phoneme E: |
| 128 |
vwl lng starttype #e endtype #e |
| 129 |
length 220 |
| 130 |
FMT(vdiph/ee-e) |
| 131 |
endphoneme |
| 132 |
|
| 133 |
phoneme E |
| 134 |
vwl starttype #e endtype #e |
| 135 |
length 140 |
| 136 |
FMT(vowel/e_mid) |
| 137 |
endphoneme |
| 138 |
|
| 139 |
phoneme &: |
| 140 |
vwl lng starttype #a endtype #a |
| 141 |
length 220 |
| 142 |
FMT(vowel/&) |
| 143 |
endphoneme |
| 144 |
|
| 145 |
|
| 146 |
phoneme a: |
| 147 |
vwl lng starttype #a endtype #a |
| 148 |
length 200 |
| 149 |
IF nextPhW(j) THEN |
| 150 |
FMT(vowel/a_5) |
| 151 |
ENDIF |
| 152 |
FMT(vowel/aa_9) |
| 153 |
endphoneme |
| 154 |
|
| 155 |
phoneme a |
| 156 |
vwl lng starttype #a endtype #a |
| 157 |
length 140 |
| 158 |
FMT(vowel/a#_3) |
| 159 |
endphoneme |
| 160 |
|
| 161 |
|
| 162 |
phoneme o: |
| 163 |
vwl lng starttype #o endtype #o |
| 164 |
length 227 |
| 165 |
FMT(vowel/o_2) |
| 166 |
endphoneme |
| 167 |
|
| 168 |
phoneme o |
| 169 |
vwl starttype #o endtype #o |
| 170 |
length 140 |
| 171 |
FMT(vowel/o) |
| 172 |
endphoneme |
| 173 |
|
| 174 |
phoneme O: |
| 175 |
vwl lng starttype #o endtype #o |
| 176 |
length 210 |
| 177 |
FMT(vowel/oo_4) |
| 178 |
endphoneme |
| 179 |
|
| 180 |
|
| 181 |
phoneme O |
| 182 |
vwl starttype #o endtype #o |
| 183 |
length 140 |
| 184 |
FMT(vowel/0) |
| 185 |
endphoneme |
| 186 |
|
| 187 |
|
| 188 |
phoneme U |
| 189 |
vwl starttype #u endtype #u |
| 190 |
length 140 |
| 191 |
FMT(vowel/uu_bck) |
| 192 |
endphoneme |
| 193 |
|
| 194 |
|
| 195 |
phoneme u: |
| 196 |
vwl lng starttype #u endtype #u |
| 197 |
length 230 |
| 198 |
FMT(vowel/u_bck) |
| 199 |
endphoneme |
| 200 |
|
| 201 |
|
| 202 |
// Nasal vowels |
| 203 |
//============= |
| 204 |
|
| 205 |
phoneme i~ |
| 206 |
vwl lng starttype #i endtype #i |
| 207 |
length 220 |
| 208 |
FMT(vnasal/i_n2) |
| 209 |
endphoneme |
| 210 |
|
| 211 |
phoneme I~ |
| 212 |
vwl lng starttype #i endtype #i |
| 213 |
length 170 |
| 214 |
FMT(vnasal/ii_n) |
| 215 |
endphoneme |
| 216 |
|
| 217 |
phoneme e~ |
| 218 |
vwl lng starttype #e endtype #e |
| 219 |
length 220 |
| 220 |
FMT(vnasal/e_n) |
| 221 |
endphoneme |
| 222 |
|
| 223 |
phoneme E~ |
| 224 |
vwl lng starttype #e endtype #e |
| 225 |
length 220 |
| 226 |
FMT(vnasal/ee_n2) |
| 227 |
endphoneme |
| 228 |
|
| 229 |
phoneme a~ |
| 230 |
vwl lng starttype #a endtype #a |
| 231 |
length 240 |
| 232 |
FMT(vnasal/a_n) |
| 233 |
endphoneme |
| 234 |
|
| 235 |
phoneme V~ |
| 236 |
vwl lng starttype #@ endtype #@ |
| 237 |
length 220 |
| 238 |
FMT(vnasal/V_n) |
| 239 |
endphoneme |
| 240 |
|
| 241 |
phoneme O~ |
| 242 |
vwl lng starttype #o endtype #o |
| 243 |
length 220 |
| 244 |
FMT(vnasal/oo_n2) |
| 245 |
endphoneme |
| 246 |
|
| 247 |
phoneme o~ |
| 248 |
vwl lng starttype #o endtype #o |
| 249 |
length 220 |
| 250 |
FMT(vnasal/o_n) |
| 251 |
endphoneme |
| 252 |
|
| 253 |
phoneme U~ |
| 254 |
vwl starttype #u endtype #u |
| 255 |
length 170 |
| 256 |
FMT(vnasal/u_n) |
| 257 |
endphoneme |
| 258 |
|
| 259 |
phoneme u~ |
| 260 |
vwl lng starttype #u endtype #u |
| 261 |
length 220 |
| 262 |
FMT(vnasal/u_n) |
| 263 |
endphoneme |
| 264 |
|
| 265 |
|
| 266 |
// Diphthongs |
| 267 |
//=========== |
| 268 |
|
| 269 |
|
| 270 |
phoneme aI |
| 271 |
vwl lng starttype #@ endtype #i |
| 272 |
length 240 |
| 273 |
lng |
| 274 |
FMT(vdiph/&i) |
| 275 |
endphoneme |
| 276 |
|
| 277 |
phoneme aU |
| 278 |
vwl lng starttype #a endtype #u |
| 279 |
length 240 |
| 280 |
lng |
| 281 |
FMT(vdiph/aau_3) |
| 282 |
endphoneme |
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
// CONSONANTS |
| 287 |
//=========== |
| 288 |
|
| 289 |
phoneme v // approximant, not fricative |
| 290 |
import_phoneme base1/v# |
| 291 |
voicingswitch f |
| 292 |
endphoneme |
| 293 |
|
| 294 |
|
| 295 |
phoneme H // use for full "h" |
| 296 |
import_phoneme base1/h |
| 297 |
endphoneme |
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
// bilabial plosives |
| 302 |
//================== |
| 303 |
|
| 304 |
phoneme p |
| 305 |
import_phoneme consonants/p- |
| 306 |
endphoneme |
| 307 |
|
| 308 |
|
| 309 |
phoneme p# |
| 310 |
import_phoneme consonants/ph |
| 311 |
endphoneme |
| 312 |
|
| 313 |
|
| 314 |
phoneme b // this is [b] |
| 315 |
import_phoneme base1/b |
| 316 |
endphoneme |
| 317 |
|
| 318 |
|
| 319 |
phoneme b# |
| 320 |
vcd blb stp |
| 321 |
lengthmod 5 |
| 322 |
voicingswitch p# |
| 323 |
Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 |
| 324 |
Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=30 |
| 325 |
|
| 326 |
IF PreVoicing THEN |
| 327 |
FMT(b/xb) |
| 328 |
ENDIF |
| 329 |
|
| 330 |
FMT( b/b@2) addWav(ustop/p_asp, 70) |
| 331 |
endphoneme |
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
// dental plosives |
| 337 |
//================== |
| 338 |
|
| 339 |
phoneme t // dental variant of /t/ |
| 340 |
import_phoneme base1/t[ |
| 341 |
voicingswitch d |
| 342 |
endphoneme |
| 343 |
|
| 344 |
|
| 345 |
phoneme t# // dental variant of /t/ |
| 346 |
vls dnt stp |
| 347 |
lengthmod 2 |
| 348 |
voicingswitch d |
| 349 |
Vowelin f1=0 f2=1500 -300 300 f3=-100 80 amp=16 |
| 350 |
Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20 |
| 351 |
IF nextPh(isPause2) THEN |
| 352 |
WAV(ustop/t_dnt, 35) |
| 353 |
ENDIF |
| 354 |
WAV(ustop/t_dnt, 50) |
| 355 |
endphoneme |
| 356 |
|
| 357 |
|
| 358 |
phoneme d // dental variant of /d/ |
| 359 |
import_phoneme base1/d[ |
| 360 |
voicingswitch t |
| 361 |
endphoneme |
| 362 |
|
| 363 |
|
| 364 |
phoneme d# |
| 365 |
vcd dnt stp |
| 366 |
lengthmod 5 |
| 367 |
voicingswitch t# |
| 368 |
Vowelin f1=0 f2=1500 -300 300 f3=-100 80 |
| 369 |
Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20 |
| 370 |
|
| 371 |
IF PreVoicing THEN |
| 372 |
FMT(d/xd) |
| 373 |
ENDIF |
| 374 |
|
| 375 |
FMT(d/xd3) addWav(ustop/t_dnt, 40) |
| 376 |
endphoneme |
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
// retroflex plosives |
| 382 |
//=================== |
| 383 |
|
| 384 |
phoneme t. |
| 385 |
vls rfx stp |
| 386 |
lengthmod 2 |
| 387 |
ipa ʈ |
| 388 |
voicingswitch d. |
| 389 |
Vowelin f1=0 f2=1800 -300 300 f3=-400 80 |
| 390 |
Vowelout f1=0 f2=1800 -300 250 f3=-400 80 rms=20 colr=2 |
| 391 |
WAV(ustop/t_short) |
| 392 |
endphoneme |
| 393 |
|
| 394 |
phoneme t.# |
| 395 |
vls rfx stp |
| 396 |
lengthmod 2 |
| 397 |
ipa ʈU+02B0 |
| 398 |
voicingswitch d.# |
| 399 |
Vowelin f1=0 f2=1800 -300 300 f3=-200 80 |
| 400 |
Vowelout f1=0 f2=1800 -300 250 f3=-400 80 rms=20 colr=2 |
| 401 |
|
| 402 |
IF nextPhW(t.#) THEN |
| 403 |
ChangePhoneme(t.) |
| 404 |
ENDIF |
| 405 |
WAV(ustop/th_rfx2, 80) |
| 406 |
endphoneme |
| 407 |
|
| 408 |
phoneme d. |
| 409 |
vcd rfx stp |
| 410 |
lengthmod 5 |
| 411 |
voicingswitch t. |
| 412 |
ipa ɖ |
| 413 |
Vowelin f1=1 f2=1800 -300 300 f3=-400 80 |
| 414 |
Vowelout f1=1 f2=1800 -300 300 f3=-400 80 colr=2 |
| 415 |
|
| 416 |
IF PreVoicing THEN |
| 417 |
FMT(d/xdr) |
| 418 |
ENDIF |
| 419 |
|
| 420 |
IF nextPh(isPause2) THEN |
| 421 |
FMT(d/d_) addWav(x/d_) |
| 422 |
ENDIF |
| 423 |
|
| 424 |
FMT(d/dr) addWav(x/d) |
| 425 |
endphoneme |
| 426 |
|
| 427 |
|
| 428 |
phoneme d.# |
| 429 |
vcd rfx stp |
| 430 |
lengthmod 5 |
| 431 |
ipa ɖU+02B0 |
| 432 |
voicingswitch t.# |
| 433 |
Vowelin f1=1 f2=1800 -300 300 f3=-400 80 |
| 434 |
Vowelout f1=1 f2=1800 -300 300 f3=-400 80 colr=2 |
| 435 |
|
| 436 |
IF PreVoicing THEN |
| 437 |
FMT(d/xdr) |
| 438 |
ENDIF |
| 439 |
|
| 440 |
FMT(d/dr) addWav(ustop/t) |
| 441 |
// FMT(d/dr) addWav(ustop/th_rfx) |
| 442 |
endphoneme |
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
// palatal plosives |
| 448 |
//================= |
| 449 |
|
| 450 |
// also try [tS] and [dZ] |
| 451 |
|
| 452 |
phoneme c |
| 453 |
vls pla afr sib |
| 454 |
voicingswitch dZ |
| 455 |
lengthmod 2 |
| 456 |
Vowelin f1=0 f2=2300 200 400 f3=-100 80 |
| 457 |
|
| 458 |
IF nextPh(isPause2) THEN |
| 459 |
WAV(ustop/tsh_) |
| 460 |
ENDIF |
| 461 |
WAV(ustop/tsh_unasp) |
| 462 |
endphoneme |
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
phoneme c# |
| 467 |
CALL base1/tS; |
| 468 |
ipa cU+02B0 |
| 469 |
endphoneme |
| 470 |
|
| 471 |
|
| 472 |
phoneme J |
| 473 |
import_phoneme base1/J |
| 474 |
endphoneme |
| 475 |
|
| 476 |
|
| 477 |
phoneme J# |
| 478 |
vcd pal afr sib |
| 479 |
lengthmod 5 |
| 480 |
voicingswitch c# |
| 481 |
Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70 |
| 482 |
Vowelout f1=0 f2=2700 400 600 f3=300 80 colr=1 |
| 483 |
|
| 484 |
IF PreVoicing THEN |
| 485 |
FMT(dzh/xdz_pzd) |
| 486 |
ENDIF |
| 487 |
|
| 488 |
FMT(dzh/xdz_pzd) addWav(ustop/ts_pzd) |
| 489 |
endphoneme |
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
// velar plosives |
| 496 |
//================== |
| 497 |
|
| 498 |
|
| 499 |
phoneme k |
| 500 |
import_phoneme consonants/k- |
| 501 |
voicingswitch g |
| 502 |
endphoneme |
| 503 |
|
| 504 |
phoneme k# |
| 505 |
import_phoneme consonants/k# |
| 506 |
voicingswitch g# |
| 507 |
endphoneme |
| 508 |
|
| 509 |
|
| 510 |
phoneme g |
| 511 |
import_phoneme base1/g |
| 512 |
voicingswitch k |
| 513 |
endphoneme |
| 514 |
|
| 515 |
|
| 516 |
phoneme g# |
| 517 |
vcd dnt stp |
| 518 |
lengthmod 5 |
| 519 |
voicingswitch k# |
| 520 |
Vowelin f1=1 f2=2300 200 300 f3=-150 80 rms=20 |
| 521 |
Vowelout f1=0 f2=2300 300 400 f3=-150 80 rms=20 |
| 522 |
|
| 523 |
IF PreVoicing THEN |
| 524 |
FMT(g2/xg) |
| 525 |
ENDIF |
| 526 |
|
| 527 |
IF nextPh(isPause2) THEN |
| 528 |
FMT(g2/xg) addWav(ustop/k_asp, 35) |
| 529 |
ENDIF |
| 530 |
FMT(g2/xg) addWav(ustop/k_asp, 50) |
| 531 |
endphoneme |
| 532 |
|
| 533 |
//================ |
| 534 |
|
| 535 |
phoneme #X2 // click, use for indicating combining long vowels |
| 536 |
vls alv frc sib |
| 537 |
lengthmod 3 |
| 538 |
WAV(ustop/percus02, 60) |
| 539 |
endphoneme |
| 540 |
|
| 541 |
|
| 542 |
phoneme r |
| 543 |
liquid rhotic |
| 544 |
lengthmod 3 |
| 545 |
|
| 546 |
IF thisPh(isWordEnd) THEN |
| 547 |
CALL base1/r/ |
| 548 |
ELSE |
| 549 |
IF prevPhW(isVowel) THEN |
| 550 |
IF nextPhW(isNotVowel) THEN |
| 551 |
IF nextPhW(isUStop) OR nextPhW(isVStop) THEN |
| 552 |
ChangePhoneme(*) |
| 553 |
ENDIF |
| 554 |
ENDIF |
| 555 |
|
| 556 |
IF nextPhW(V) THEN // [V] may be removed by ChangePhoneme(NULL) |
| 557 |
IF next2PhW(isUStop) OR next2PhW(isVStop) THEN |
| 558 |
ChangePhoneme(*) |
| 559 |
ENDIF |
| 560 |
ELSE |
| 561 |
IF nextPhW(isVowel) THEN |
| 562 |
ChangePhoneme(*) |
| 563 |
ENDIF |
| 564 |
ENDIF |
| 565 |
ENDIF |
| 566 |
|
| 567 |
CALL base1/r |
| 568 |
ENDIF |
| 569 |
ipa ɾ |
| 570 |
endphoneme |
| 571 |
|
| 572 |
|