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_romanian 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. //====================================================
  2. // Romanian
  3. //====================================================
  4. // Vowels
  5. phoneme I^ // "silent i", palatilizes the preceding consonant
  6. vwl starttype #i endtype #i
  7. unstressed
  8. ipa ʲ
  9. length 70
  10. IF nextPh(isVowel) THEN
  11. ChangePhoneme(;)
  12. ENDIF
  13. IF prevPh(l;) THEN
  14. Length 60
  15. FMT(vwl_ro/li)
  16. ENDIF
  17. IF prevPh(m;) THEN
  18. FMT(vwl_ro/mi)
  19. ENDIF
  20. IF prevPh(n;) THEN
  21. FMT(vwl_ro/ni)
  22. ENDIF
  23. FMT(vwl_ro/ii-)
  24. endphoneme
  25. phoneme i/ // used for "i" at end of word
  26. vwl starttype #i endtype #i
  27. length 150
  28. ChangeIfNotStressed(I^)
  29. IfNextVowelAppend(;)
  30. FMT(vowel/i)
  31. endphoneme
  32. phoneme e
  33. vwl starttype #e endtype #e
  34. length 180
  35. FMT(vowel/e_mid2)
  36. endphoneme
  37. phoneme y
  38. vwl starttype #@ endtype #@
  39. ipa ɨ
  40. length 180
  41. FMT(vowel/i#_5)
  42. endphoneme
  43. phoneme a
  44. vwl starttype #a endtype #a
  45. length 180
  46. FMT(vowel/a_2)
  47. endphoneme
  48. phoneme @
  49. vwl starttype #@ endtype #@
  50. length 170
  51. FMT(vowel/@_low)
  52. endphoneme
  53. phoneme o
  54. vwl starttype #o endtype #o
  55. length 170
  56. FMT(vowel/o-_4)
  57. endphoneme
  58. phoneme u
  59. vwl starttype #u endtype #u
  60. length 160
  61. FMT(vowel/u_2)
  62. endphoneme
  63. phoneme Y
  64. vwl starttype #@ endtype #@
  65. length 180
  66. FMT(vowel/y#)
  67. endphoneme
  68. // Diphthongs
  69. phoneme @I
  70. vwl starttype #@ endtype #i
  71. length 250
  72. FMT(vdiph/@i_3)
  73. endphoneme
  74. phoneme @U
  75. vwl starttype #@ endtype #u
  76. length 260
  77. FMT(vdiph/@u_3)
  78. endphoneme
  79. phoneme oU
  80. vwl starttype #o endtype #u
  81. length 260
  82. FMT(vdiph/ou_2)
  83. endphoneme
  84. phoneme iI
  85. vwl starttype #i endtype #i
  86. length 250
  87. FMT(vdiph/ii)
  88. endphoneme
  89. phoneme yI
  90. vwl starttype #@ endtype #i
  91. length 210
  92. FMT(vdiph/i#i)
  93. endphoneme
  94. phoneme yU
  95. vwl starttype #@ endtype #u
  96. length 230
  97. FMT(vdiph2/uw_3)
  98. endphoneme
  99. phoneme ea
  100. vwl starttype #e endtype #a
  101. length 250
  102. FMT(vdiph2/ea)
  103. endphoneme
  104. phoneme eo
  105. vwl starttype #e endtype #o
  106. length 270
  107. FMT(vdiph2/eo)
  108. endphoneme
  109. phoneme e[u
  110. vwl starttype #e endtype #u
  111. length 250
  112. FMT(vdiph2/e_u)
  113. endphoneme
  114. phoneme Oa
  115. vwl starttype #o endtype #a
  116. length 250
  117. FMT(vdiph2/oa)
  118. endphoneme
  119. // Consonants
  120. phoneme r
  121. liquid
  122. trill
  123. lengthmod 7
  124. IF nextPh(isNotVowel) THEN
  125. ChangePhoneme(r/)
  126. ENDIF
  127. NextVowelStarts
  128. VowelStart(r/r@, -15)
  129. VowelStart(r/ra, -15)
  130. VowelStart(r/re, -15)
  131. VowelStart(r/ri, -15)
  132. VowelStart(r/ro, -15)
  133. VowelStart(r/ru, -15)
  134. EndSwitch
  135. IF prevPh(isVowel) THEN
  136. VowelEnding(r/xr, -50)
  137. ENDIF
  138. IF prevPh(t) OR prevPh(p) OR prevPh(k) THEN
  139. FMT(r/trr)
  140. ENDIF
  141. FMT(r/rr)
  142. endphoneme
  143. phoneme l;
  144. liquid
  145. lengthmod 7
  146. CALL base/l
  147. Vowelout colr=1
  148. endphoneme
  149. phoneme m;
  150. vcd blb nasal
  151. lengthmod 4
  152. CALL base/m
  153. Vowelout f1=2 f2=1000 -500 -350 f3=200 80 brk colr=1
  154. endphoneme
  155. phoneme n;
  156. vcd alv nasal
  157. lengthmod 4
  158. CALL base/n
  159. Vowelout f1=2 f2=1700 -300 250 f3=200 80 rms=20 brk colr=1
  160. endphoneme
  161. phoneme p;
  162. vls blb stop
  163. lengthmod 2
  164. voicingswitch b
  165. CALL base2/p
  166. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=30 colr=1
  167. endphoneme
  168. phoneme t; // dental variant of /t/
  169. vls dnt stop
  170. lengthmod 2
  171. voicingswitch d
  172. CALL base2/t
  173. Vowelout f1=0 f2=1700 100 250 f3=0 80 rms=20 colr=1
  174. endphoneme
  175. phoneme ts;
  176. vls alv afr sibilant
  177. lengthmod 2
  178. CALL base2/ts
  179. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20 colr=1
  180. endphoneme
  181. phoneme f;
  182. vls lbd frc
  183. lengthmod 3
  184. voicingswitch v
  185. CALL base/f
  186. Vowelout f1=0 f2=1000 -500 -350 f3=-200 80 colr=1
  187. endphoneme
  188. phoneme s;
  189. vls alv frc sibilant
  190. voicingswitch z;
  191. lengthmod 3
  192. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  193. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20 colr=1
  194. WAV(ufric/s_pzd, 50)
  195. endphoneme
  196. phoneme S;
  197. vls pla frc sibilant
  198. voicingswitch Z;
  199. lengthmod 3
  200. Vowelin f1=0 f2=2100 100 300 f3=-100 80
  201. Vowelout f1=0 f2=2100 100 300 f3=-100 80 colr=1
  202. WAV(ufric/sh_pzd)
  203. endphoneme
  204. phoneme b;
  205. vcd blb stop
  206. voicingswitch p;
  207. lengthmod 5
  208. Vowelout f1=2 f2=1000 -500 -300 f3=-300 80 brk colr=1
  209. IF nextPh(#i) THEN
  210. FMT(b/bi) addWav(x/b)
  211. ENDIF
  212. FMT(b/b) addWav(x/b)
  213. endphoneme
  214. phoneme d; // dental variant of /d/
  215. vcd dnt stop
  216. voicingswitch t;
  217. lengthmod 5
  218. CALL base2/d
  219. Vowelin f1=2 f2=1700 100 300 f3=0 80
  220. Vowelout f1=2 f2=1700 100 300 f3=0 80 colr=1
  221. endphoneme
  222. phoneme *; // flap
  223. vcd alv flp
  224. lengthmod 2
  225. Vowelout f1=3 f2=1700 -300 300 f3=-300 80 rms=35 len=15 colr=1
  226. IF nextPh(#i) THEN
  227. Vowelin f1=0 f2=1700 -300 300 f3=-400 80
  228. FMT(d/tap_i) addWav(r3/rx)
  229. ENDIF
  230. FMT(d/tap) addWav(r3/rx)
  231. endphoneme
  232. phoneme v;
  233. vcd lbd frc
  234. lengthmod 6
  235. voicingswitch f;
  236. Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
  237. Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50 colr=1
  238. IF nextPh(isPause2) THEN
  239. FMT(voc/v_) addWav(vocw/v)
  240. ENDIF
  241. FMT(voc/v) addWav(vocw/v)
  242. endphoneme
  243. phoneme z;
  244. vcd alv frc sibilant
  245. lengthmod 6
  246. voicingswitch s;
  247. Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50 colr=1
  248. IF nextPh(isPause2) THEN
  249. FMT(voc/z_) addWav(ufric/s_)
  250. ENDIF
  251. FMT(voc/z) addWav(ufric/s_)
  252. endphoneme
  253. phoneme Z;
  254. vcd pla frc sibilant
  255. lengthmod 6
  256. voicingswitch S;
  257. Vowelin f1=0 f2=2000 0 300 f3=-200 80 colr=1
  258. Vowelout f1=2 f2=2000 0 300 f3=-200 80 brk
  259. IF nextPh(isPause2) THEN
  260. FMT(voc/zh_) addWav(vocw/zh)
  261. ENDIF
  262. FMT(voc/zh) addWav(vocw/zh)
  263. endphoneme