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.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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. phoneme z/2 // used for 's suffix
  62. vcd alv frc sibilant
  63. lengthmod 6
  64. IF prevPh(isSibilant) THEN
  65. InsertPhoneme(I2)
  66. ENDIF
  67. IF prevPh(isVoiced) THEN
  68. ELSE
  69. ChangePhoneme(s)
  70. ENDIF
  71. ChangePhoneme(z)
  72. endphoneme
  73. //*******************************************************************
  74. // VOWELS
  75. //*******************************************************************
  76. phoneme @ // Schwa
  77. vowel starttype #@ endtype #@
  78. unstressed
  79. length 140
  80. IfNextVowelAppend(r-)
  81. IF thisPh(isWordEnd) THEN
  82. FMT(vowel/@_6)
  83. ENDIF
  84. FMT(vowel/@)
  85. endphoneme
  86. phoneme 3 // Schwa, used for rhotic schwa in American
  87. vowel starttype #@ endtype #@
  88. unstressed
  89. length 140
  90. IfNextVowelAppend(r-)
  91. IF thisPh(isWordEnd) THEN
  92. FMT(vowel/@_6)
  93. ENDIF
  94. FMT(vowel/@)
  95. endphoneme
  96. phoneme @2 // Schwa, changes to I before a vowel
  97. vowel starttype #@ endtype #@
  98. unstressed
  99. length 120
  100. IF nextPh(isVowel) THEN
  101. ChangePhoneme(I2)
  102. ENDIF
  103. FMT(vowel/@)
  104. endphoneme
  105. phoneme @5 // Schwa, changes to U before a vowel
  106. vowel starttype #@ endtype #@
  107. unstressed
  108. length 140
  109. IF nextPh(isVowel) OR nextPh(isPause) THEN
  110. ChangePhoneme(U)
  111. ENDIF
  112. FMT(vowel/@)
  113. endphoneme
  114. phoneme @L
  115. vowel starttype #@ endtype l
  116. unstressed
  117. length 160
  118. CALL vowelstart_l
  119. FMT(vwl_en/@L)
  120. endphoneme
  121. phoneme a
  122. vowel starttype #a endtype #a
  123. length 160
  124. ChangeIfDiminished(a#)
  125. IF thisPh(isUnstressed) THEN
  126. FMT(vowel/a_7)
  127. ENDIF
  128. FMT(vowel/a)
  129. endphoneme
  130. phoneme a#
  131. vowel starttype #@ endtype #@
  132. unstressed
  133. length 150
  134. FMT(vowel/a#_3)
  135. endphoneme
  136. phoneme aa // 'bath' etc.
  137. vowel starttype #a endtype #a
  138. length 190
  139. IfNextVowelAppend(r-)
  140. FMT(vowel/a)
  141. endphoneme
  142. phoneme E
  143. vowel starttype #e endtype #e
  144. length 140
  145. ChangeIfDiminished(I2)
  146. FMT(vowel/ee_5)
  147. endphoneme
  148. phoneme I
  149. vowel starttype #i endtype #i
  150. length 130
  151. IfNextVowelAppend(;)
  152. FMT(vowel/ii_2)
  153. endphoneme
  154. phoneme I2
  155. vowel starttype #i endtype #i
  156. unstressed
  157. length 130
  158. IfNextVowelAppend(;)
  159. FMT(vowel/ii_4)
  160. endphoneme
  161. phoneme i // optional variant of [I] for end of words
  162. vowel starttype #i endtype #i
  163. length 140
  164. IfNextVowelAppend(;)
  165. FMT(vowel/ii_en)
  166. endphoneme
  167. phoneme 0
  168. vowel starttype #o endtype #o
  169. length 140
  170. ChangeIfDiminished(@)
  171. FMT(vowel/0)
  172. endphoneme
  173. phoneme V
  174. vowel starttype #a endtype #@
  175. length 140
  176. ChangeIfDiminished(@)
  177. FMT(vowel/V_2)
  178. endphoneme
  179. phoneme U
  180. vowel starttype #o endtype #o
  181. length 150
  182. FMT(vowel/uu)
  183. endphoneme
  184. phoneme A:
  185. vowel starttype #a endtype #a
  186. length 230
  187. IfNextVowelAppend(r-)
  188. FMT(vowel/aa_2)
  189. endphoneme
  190. phoneme A@ // Used for [A:] when followed by 'r'
  191. vowel starttype #a endtype #a
  192. length 230
  193. IfNextVowelAppend(r-)
  194. FMT(vowel/aa_2)
  195. endphoneme
  196. phoneme 3:
  197. vowel starttype #@ endtype #@
  198. length 210
  199. IfNextVowelAppend(r-)
  200. ChangeIfDiminished(@)
  201. FMT(vowel/3_en)
  202. endphoneme
  203. phoneme i:
  204. vowel starttype #i endtype #i
  205. length 175 long
  206. IfNextVowelAppend(;)
  207. IF prevPh(w) THEN
  208. VowelStart(w/wi2)
  209. ENDIF
  210. FMT(vowel/i_en)
  211. endphoneme
  212. phoneme O:
  213. vowel starttype #o endtype #o
  214. length 230
  215. ChangeIfDiminished(@)
  216. FMT(vowel/oo_en)
  217. endphoneme
  218. phoneme O
  219. vowel starttype #o endtype #o
  220. length 200
  221. ChangeIfDiminished(@)
  222. FMT(vowel/oo_en)
  223. endphoneme
  224. phoneme O@
  225. vowel starttype #o endtype #o
  226. length 240
  227. IfNextVowelAppend(r-)
  228. FMT(vowel/oo_en)
  229. endphoneme
  230. phoneme o@
  231. vowel starttype #o endtype #o
  232. length 250
  233. IfNextVowelAppend(r-)
  234. FMT(vowel/oo_en)
  235. endphoneme
  236. phoneme u:
  237. vowel starttype #u endtype #u
  238. length 210
  239. IF nextPh(l/2) THEN
  240. FMT(vwl_en/u_L)
  241. ENDIF
  242. FMT(vdiph2/uw_2)
  243. endphoneme
  244. phoneme aU
  245. vowel starttype #a endtype #u
  246. length 230
  247. FMT(vdiph/au)
  248. endphoneme
  249. phoneme oU
  250. vowel starttype #@ endtype #u
  251. length 220
  252. FMT(vdiph/@u_en)
  253. endphoneme
  254. phoneme aI
  255. vowel starttype #a endtype #i
  256. length 240
  257. FMT(vdiph/ai_2)
  258. endphoneme
  259. phoneme eI
  260. vowel starttype #e endtype #i
  261. length 210
  262. FMT(vdiph/eei)
  263. endphoneme
  264. phoneme OI
  265. vowel starttype #o endtype #i
  266. length 230
  267. FMT(vdiph/ooi)
  268. endphoneme
  269. phoneme e@
  270. vowel starttype #e endtype #@
  271. length 230
  272. IfNextVowelAppend(r-)
  273. FMT(vowel/ee_1)
  274. endphoneme
  275. phoneme i@
  276. vowel starttype #i endtype #@
  277. length 250
  278. IfNextVowelAppend(r-)
  279. FMT(vdiph2/ii@)
  280. endphoneme
  281. phoneme i@3
  282. vowel starttype #i endtype #@
  283. length 250
  284. IfNextVowelAppend(r-)
  285. FMT(vdiph2/ii@)
  286. endphoneme
  287. phoneme U@
  288. vowel starttype #u endtype #@
  289. length 200
  290. IfNextVowelAppend(r-)
  291. FMT(vdiph2/uu@)
  292. endphoneme
  293. phoneme aI@
  294. vowel starttype #a endtype #@
  295. length 270
  296. IfNextVowelAppend(r-)
  297. FMT(vwl_en/aI@)
  298. endphoneme
  299. phoneme aU@
  300. vowel starttype #a endtype #@
  301. length 270
  302. IfNextVowelAppend(r-)
  303. FMT(vwl_en/aU@)
  304. endphoneme
  305. phoneme IR // used for "ir" when [3:] is split (Scottish)
  306. vowel starttype #@ endtype #@
  307. length 190
  308. IfNextVowelAppend(r-)
  309. FMT(vowelr/V_r)
  310. endphoneme
  311. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  312. vowel starttype #@ endtype #@
  313. length 210
  314. IfNextVowelAppend(r-)
  315. FMT(vowelr/V3_r)
  316. endphoneme
  317. phoneme o:
  318. vowel starttype #o endtype #o
  319. length 220
  320. FMT(vowel/o)
  321. endphoneme
  322. phoneme A~
  323. vowel starttype #a endtype #a
  324. length 260
  325. FMT(vnasal/aa_n2)
  326. endphoneme
  327. phoneme O~
  328. vowel starttype #o endtype #o
  329. length 240
  330. FMT(vnasal/oo_n2)
  331. endphoneme
  332. phoneme e:
  333. vowel starttype #e endtype #e
  334. length 210
  335. FMT(vowel/e)
  336. endphoneme