eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ph_hindi 918B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Differences from ph_hindi_base
  2. phoneme V
  3. vwl flag1 starttype #@ endtype #@
  4. length 140
  5. IF thisPh(isWordStart) THEN
  6. FMT(vowel/V_3)
  7. RETURN
  8. ENDIF
  9. IF thisPh(isNotStressed) THEN
  10. length 130
  11. IF thisPh(isWordEnd) AND NOT thisPh(isFirstVowel) THEN
  12. ChangePhoneme(NULL)
  13. ENDIF
  14. IF prevPh(H) THEN
  15. ChangePhoneme(@)
  16. ENDIF
  17. IF prev2PhW(isVowel) AND NOT nextVowel(isFlag1) THEN
  18. IF thisPh(isFinalVowel) AND nextPhW(isNotVowel) THEN
  19. // don't delete schwa before a word-final consonant
  20. ELSE
  21. ChangePhoneme(NULL)
  22. ENDIF
  23. ENDIF
  24. IF prevPh(isPalatal) AND NOT nextPh(H) THEN
  25. ChangePhoneme(@3)
  26. ELSEIF prevPh(r) THEN
  27. ChangePhoneme(@2)
  28. ELSE
  29. ChangePhoneme(@)
  30. ENDIF
  31. ENDIF
  32. IF nextPh(H) OR prevPh(H) THEN
  33. FMT(vowel/@_low)
  34. ENDIF
  35. IF prevPh(w) THEN
  36. FMT(vowel/V_4)
  37. ENDIF
  38. FMT(vowel/V_3)
  39. endphoneme