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

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