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_latvian 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // IF thisPh(isStressed) THEN
  2. // FMT(vowel/..., 100)
  3. // ELIF thisPh(isDiminished) AND NOT prevVowel(isStressed) THEN
  4. // FMT(vowel/..., 50)
  5. // ELSE
  6. // FMT(vowel/..., 75)
  7. // ENDIF
  8. phoneme a
  9. vowel starttype #a endtype #a
  10. length 120
  11. FMT(vwl_lv/a, 100) // adjusted from aa_3
  12. endphoneme
  13. phoneme a:
  14. vowel starttype #a endtype #a
  15. length 300
  16. long
  17. FMT(vwl_lv/aa, 100)
  18. endphoneme
  19. phoneme E
  20. vowel starttype #e endtype #e
  21. length 120
  22. FMT(vwl_lv/e2, 100)
  23. endphoneme
  24. phoneme E:
  25. vowel starttype #e endtype #e
  26. length 300
  27. FMT(vwl_lv/ee2, 100)
  28. endphoneme
  29. phoneme e
  30. vowel starttype #e endtype #e
  31. length 120
  32. FMT(vwl_lv/e, 100) // other alternative e_5
  33. endphoneme
  34. phoneme e:
  35. vowel starttype #e endtype #e
  36. length 300
  37. FMT(vwl_lv/ee, 100) // other alternative e_8
  38. endphoneme
  39. phoneme i
  40. vowel starttype #i endtype #i
  41. length 120
  42. FMT(vwl_lv/i, 110) // was i_6
  43. endphoneme
  44. phoneme i:
  45. vowel starttype #i endtype #i
  46. length 300
  47. FMT(vwl_lv/ii, 110) // was i_7
  48. endphoneme
  49. phoneme o
  50. vowel starttype #o endtype #o
  51. length 120
  52. FMT(vwl_lv/o, 90)
  53. endphoneme
  54. phoneme o:
  55. vowel starttype #o endtype #o
  56. length 300
  57. FMT(vwl_lv/oo, 75)
  58. endphoneme
  59. phoneme u
  60. vowel starttype #u endtype #u
  61. length 120
  62. FMT(vwl_lv/u, 140)
  63. endphoneme
  64. phoneme u:
  65. vowel starttype #u endtype #u
  66. length 300
  67. FMT(vwl_lv/uu, 120)
  68. endphoneme
  69. phoneme ai
  70. vowel starttype #a endtype #i
  71. length 250
  72. long
  73. FMT(vdiph/aai, 100)
  74. endphoneme
  75. phoneme au
  76. vowel starttype #a endtype #u
  77. length 250
  78. long
  79. FMT(vdiph/aau, 100)
  80. endphoneme
  81. phoneme ei
  82. vowel starttype #e endtype #i
  83. length 250
  84. long
  85. FMT(vdiph/eei_2, 100)
  86. endphoneme
  87. phoneme ie
  88. vowel starttype #i endtype #e
  89. length 250
  90. long
  91. FMT(vdiph2/ie_2, 100)
  92. endphoneme
  93. phoneme iu
  94. vowel starttype #i endtype #u
  95. length 250
  96. long
  97. FMT(vdiph2/iu_2, 100)
  98. endphoneme
  99. phoneme ui
  100. vowel starttype #u endtype #i
  101. length 250
  102. long
  103. FMT(vdiph/ui, 100)
  104. endphoneme
  105. phoneme uo
  106. vowel starttype #u endtype #a
  107. length 200
  108. long
  109. FMT(vdiph2/uaa, 100)
  110. endphoneme
  111. phoneme oi
  112. vowel starttype #o endtype #i
  113. length 250
  114. long
  115. FMT(vdiph/ooi, 100)
  116. endphoneme
  117. phoneme ts
  118. vls alv afr nolink
  119. voicingswitch J
  120. length 55
  121. lengthmod 1
  122. WAV(ustop/ts2, 60)
  123. endphoneme
  124. phoneme tS
  125. vls pla afr sibilant
  126. voicingswitch dZ
  127. lengthmod 2
  128. length 80
  129. WAV(ustop/tsh,40)
  130. endphoneme
  131. phoneme R
  132. liquid
  133. trill
  134. lengthmod 6
  135. Vowelin f1=0 f2=1700 -300 300 f3=-300 80
  136. Vowelout f1=2 f2=1700 -300 300 f3=-300 80 brk
  137. FMT(r3/r_trill) addWav(r3/r_trill.wav, 50)
  138. endphoneme
  139. phoneme t
  140. vls alv stop //lengthenstop
  141. lengthmod 1
  142. voicingswitch d
  143. IF nextPh(isPause2) THEN
  144. WAV(ustop/t_dnt, 40)
  145. ENDIF
  146. WAV(ustop/t_dnt, 50)
  147. endphoneme
  148. phoneme p
  149. vls blb stop
  150. lengthmod 2
  151. voicingswitch b
  152. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80
  153. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=30
  154. IF nextPh(isPause2) THEN
  155. WAV(ustop/p_unasp_, 80)
  156. ENDIF
  157. IF nextPh(l) THEN
  158. WAV(ustop/pl)
  159. ENDIF
  160. WAV(ustop/p_unasp, 120)
  161. endphoneme
  162. phoneme k
  163. vls vel stop
  164. lengthmod 2
  165. voicingswitch g
  166. Vowelin f1=0 f2=2300 200 400 f3=-100 80
  167. Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20
  168. IF nextPh(isPause2) THEN
  169. WAV(ustop/k_)
  170. ENDIF
  171. IF nextPh(#i) OR nextPh(l^) THEN
  172. WAV(ustop/ki)
  173. ENDIF
  174. IF nextPh(l) THEN
  175. WAV(ustop/kl)
  176. ENDIF
  177. WAV(ustop/k_unasp, 60) // weaker
  178. endphoneme
  179. phoneme c
  180. vls pal stop palatal
  181. voicingswitch J
  182. lengthmod 2
  183. WAV(ustop/c, 90)
  184. endphoneme
  185. // TODO should use this with correct lengthening
  186. //phoneme l
  187. // liquid
  188. // unstressed
  189. // dnt
  190. // length 150
  191. // FMT(vwl_hi/l-voc)
  192. //endphoneme
  193. phoneme s
  194. vls alv frc sibilant
  195. voicingswitch z
  196. lengthmod 3
  197. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  198. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  199. WAV(ufric/s,60)
  200. endphoneme