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_english 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. phoneme t2 // [t] which doesn't reduce
  2. import_phoneme base/t
  3. endphoneme
  4. phoneme t# // reduced [t] as in "city"
  5. vcd alv stop
  6. lengthmod 5
  7. Vowelin f1=1 f2=1700 -300 300 f3=-100 80
  8. Vowelout f1=2 f2=1700 -300 300 f3=-100 80
  9. IF KlattSynth THEN
  10. IF PreVoicing THEN
  11. FMT(klatt/x_tap)
  12. ENDIF
  13. FMT(klatt/tap2) addWav(x/d, 70)
  14. ENDIF
  15. IF PreVoicing THEN
  16. FMT(d/x_tap)
  17. ENDIF
  18. FMT(d/tap2) addWav(x/d, 70)
  19. endphoneme
  20. phoneme l // use dark [l/2] before not-vowel
  21. liquid
  22. lengthmod 7
  23. IF nextPh(isNotVowel) THEN
  24. IF prevPh(isNotVowel) THEN
  25. ChangePhoneme(l/)
  26. ELSE
  27. ChangePhoneme(l/2)
  28. ENDIF
  29. ENDIF
  30. CALL base/l
  31. endphoneme
  32. phoneme g-
  33. vcd vel stop
  34. lengthmod 5
  35. Vowelin f1=2 f2=2300 200 300 f3=-300 80
  36. Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
  37. IF PreVoicing THEN
  38. FMT(g/xg)
  39. ENDIF
  40. IF nextPh(isPause2) THEN
  41. FMT(g/g_) addWav(x/g2_)
  42. ENDIF
  43. FMT(g/g) addWav(x/g2_)
  44. endphoneme
  45. phoneme r- // linking r, used in English between certain vowels and a following vowel
  46. liquid rhotic
  47. lengthmod 0
  48. NextVowelStarts
  49. VowelStart(r2/r2@)
  50. VowelStart(r2/r2a)
  51. VowelStart(r2/r2e)
  52. VowelStart(r2/r2i)
  53. VowelStart(r2/r2o)
  54. VowelStart(r2/r2u)
  55. EndSwitch
  56. IF prevPh(isVowel) THEN
  57. VowelEnding(r/xr, -60)
  58. ENDIF
  59. FMT(r/r)
  60. endphoneme
  61. //*******************************************************************
  62. // VOWELS
  63. //*******************************************************************
  64. phoneme @ // Schwa
  65. vowel starttype #@ endtype #@
  66. unstressed
  67. length 140
  68. IfNextVowelAppend(r-)
  69. FMT(vowel/@)
  70. endphoneme
  71. phoneme 3 // Schwa, used for rhotic schwa in American
  72. vowel starttype #@ endtype #@
  73. unstressed
  74. length 140
  75. IfNextVowelAppend(r-)
  76. FMT(vowel/@)
  77. endphoneme
  78. phoneme @2 // Schwa, changes to I before a vowel
  79. vowel starttype #@ endtype #@
  80. unstressed
  81. length 120
  82. IF nextPh(isVowel) THEN
  83. ChangePhoneme(I2)
  84. ENDIF
  85. FMT(vowel/@)
  86. endphoneme
  87. phoneme @5 // Schwa, changes to U before a vowel
  88. vowel starttype #@ endtype #@
  89. unstressed
  90. length 140
  91. IF nextPh(isVowel) OR nextPh(isPause) THEN
  92. ChangePhoneme(U)
  93. ENDIF
  94. FMT(vowel/@)
  95. endphoneme
  96. phoneme @L
  97. vowel starttype #@ endtype l
  98. unstressed
  99. length 160
  100. CALL vowelstart_l
  101. FMT(vwl_en/@L)
  102. endphoneme
  103. phoneme a
  104. vowel starttype #a endtype #a
  105. length 160
  106. ChangeIfDiminished(a2)
  107. FMT(vowel/a)
  108. endphoneme
  109. phoneme a2
  110. vowel starttype #@ endtype #@
  111. unstressed
  112. length 150
  113. FMT(vowel/a#_3)
  114. endphoneme
  115. phoneme aa // 'bath' etc.
  116. vowel starttype #a endtype #a
  117. length 190
  118. IfNextVowelAppend(r-)
  119. FMT(vowel/a)
  120. endphoneme
  121. phoneme E
  122. vowel starttype #e endtype #e
  123. length 140
  124. ChangeIfDiminished(I2)
  125. FMT(vowel/ee_5)
  126. endphoneme
  127. phoneme I
  128. vowel starttype #i endtype #i
  129. length 130
  130. IfNextVowelAppend(;)
  131. FMT(vowel/ii_2)
  132. endphoneme
  133. phoneme I2
  134. vowel starttype #i endtype #i
  135. unstressed
  136. length 130
  137. IfNextVowelAppend(;)
  138. FMT(vowel/ii_4)
  139. endphoneme
  140. phoneme i // optional variant of [I] for end of words
  141. vowel starttype #i endtype #i
  142. length 140
  143. IfNextVowelAppend(;)
  144. FMT(vowel/ii_en)
  145. endphoneme
  146. phoneme 0
  147. vowel starttype #o endtype #o
  148. length 140
  149. ChangeIfDiminished(@)
  150. FMT(vowel/0)
  151. endphoneme
  152. phoneme V
  153. vowel starttype #a endtype #@
  154. length 140
  155. ChangeIfDiminished(@)
  156. FMT(vowel/V_2)
  157. endphoneme
  158. phoneme U
  159. vowel starttype #o endtype #o
  160. length 150
  161. FMT(vowel/uu)
  162. endphoneme
  163. phoneme A:
  164. vowel starttype #a endtype #a
  165. length 230
  166. IfNextVowelAppend(r-)
  167. FMT(vowel/aa_2)
  168. endphoneme
  169. phoneme A@ // Used for [A:] when followed by 'r'
  170. vowel starttype #a endtype #a
  171. length 230
  172. IfNextVowelAppend(r-)
  173. FMT(vowel/aa_2)
  174. endphoneme
  175. phoneme 3:
  176. vowel starttype #@ endtype #@
  177. length 210
  178. IfNextVowelAppend(r-)
  179. ChangeIfDiminished(@)
  180. FMT(vowel/3_en)
  181. endphoneme
  182. phoneme i:
  183. vowel starttype #i endtype #i
  184. length 175
  185. IfNextVowelAppend(;)
  186. IF prevPh(w) THEN
  187. VowelStart(w/wi2)
  188. ENDIF
  189. FMT(vowel/i_en)
  190. endphoneme
  191. phoneme O:
  192. vowel starttype #o endtype #o
  193. length 230
  194. ChangeIfDiminished(@)
  195. FMT(vowel/oo_en)
  196. endphoneme
  197. phoneme O
  198. vowel starttype #o endtype #o
  199. length 200
  200. ChangeIfDiminished(@)
  201. FMT(vowel/oo_en)
  202. endphoneme
  203. phoneme O@
  204. vowel starttype #o endtype #o
  205. length 240
  206. IfNextVowelAppend(r-)
  207. FMT(vowel/oo_en)
  208. endphoneme
  209. phoneme o@
  210. vowel starttype #o endtype #o
  211. length 250
  212. IfNextVowelAppend(r-)
  213. FMT(vowel/oo_en)
  214. endphoneme
  215. phoneme u:
  216. vowel starttype #u endtype #u
  217. length 210
  218. IF nextPh(l/2) THEN
  219. FMT(vwl_en/u_L)
  220. ENDIF
  221. FMT(vdiph2/uw_2)
  222. endphoneme
  223. phoneme aU
  224. vowel starttype #a endtype #u
  225. length 230
  226. FMT(vdiph/au)
  227. endphoneme
  228. phoneme oU
  229. vowel starttype #@ endtype #u
  230. length 220
  231. FMT(vdiph/@u_en)
  232. endphoneme
  233. phoneme aI
  234. vowel starttype #a endtype #i
  235. length 240
  236. FMT(vdiph/ai_2)
  237. endphoneme
  238. phoneme eI
  239. vowel starttype #e endtype #i
  240. length 210
  241. FMT(vdiph/eei)
  242. endphoneme
  243. phoneme OI
  244. vowel starttype #o endtype #i
  245. length 230
  246. FMT(vdiph/ooi)
  247. endphoneme
  248. phoneme e@
  249. vowel starttype #e endtype #@
  250. length 230
  251. IfNextVowelAppend(r-)
  252. FMT(vowel/ee_1)
  253. endphoneme
  254. phoneme i@
  255. vowel starttype #i endtype #@
  256. length 250
  257. IfNextVowelAppend(r-)
  258. FMT(vdiph2/ii@)
  259. endphoneme
  260. phoneme i@3
  261. vowel starttype #i endtype #@
  262. length 250
  263. IfNextVowelAppend(r-)
  264. FMT(vdiph2/ii@)
  265. endphoneme
  266. phoneme U@
  267. vowel starttype #u endtype #@
  268. length 200
  269. IfNextVowelAppend(r-)
  270. FMT(vdiph2/uu@)
  271. endphoneme
  272. phoneme aI@
  273. vowel starttype #a endtype #@
  274. length 270
  275. IfNextVowelAppend(r-)
  276. FMT(vwl_en/aI@)
  277. endphoneme
  278. phoneme aU@
  279. vowel starttype #a endtype #@
  280. length 270
  281. IfNextVowelAppend(r-)
  282. FMT(vwl_en/aU@)
  283. endphoneme
  284. phoneme IR // used for "ir" when [3:] is split (Scottish)
  285. vowel starttype #@ endtype #@
  286. length 190
  287. IfNextVowelAppend(r-)
  288. FMT(vowelr/V_r)
  289. endphoneme
  290. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  291. vowel starttype #@ endtype #@
  292. length 210
  293. IfNextVowelAppend(r-)
  294. FMT(vowelr/V3_r)
  295. endphoneme
  296. phoneme o:
  297. vowel starttype #o endtype #o
  298. length 220
  299. FMT(vowel/o)
  300. endphoneme
  301. phoneme A~
  302. vowel starttype #a endtype #a
  303. length 260
  304. FMT(vnasal/aa_n2)
  305. endphoneme
  306. phoneme O~
  307. vowel starttype #o endtype #o
  308. length 240
  309. FMT(vnasal/oo_n2)
  310. endphoneme
  311. phoneme e:
  312. vowel starttype #e endtype #e
  313. length 210
  314. FMT(vowel/e)
  315. endphoneme