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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  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. ipa ɾ
  7. lengthmod 5
  8. Vowelin f1=1 f2=1700 -300 300 f3=-100 80
  9. Vowelout f1=2 f2=1700 -300 300 f3=-100 80
  10. IF KlattSynth THEN
  11. IF PreVoicing THEN
  12. FMT(klatt/x_tap)
  13. ENDIF
  14. FMT(klatt/tap2) addWav(x/d, 70)
  15. ENDIF
  16. IF PreVoicing THEN
  17. FMT(d/x_tap)
  18. ENDIF
  19. FMT(d/tap2) addWav(x/d, 70)
  20. endphoneme
  21. phoneme l // use dark [l/2] before not-vowel
  22. liquid
  23. lengthmod 7
  24. IF nextPhW(isVowel) THEN
  25. ELSE
  26. IF prevPh(isNotVowel) THEN
  27. ChangePhoneme(l/)
  28. ELSE
  29. ChangePhoneme(l/2)
  30. ENDIF
  31. ENDIF
  32. CALL base/l
  33. endphoneme
  34. phoneme g-
  35. vcd vel stop
  36. lengthmod 5
  37. Vowelin f1=2 f2=2300 200 300 f3=-300 80
  38. Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
  39. IF PreVoicing THEN
  40. FMT(g/xg)
  41. ENDIF
  42. IF nextPh(isPause2) THEN
  43. FMT(g/g_) addWav(x/g2_)
  44. ENDIF
  45. FMT(g/g) addWav(x/g2_)
  46. endphoneme
  47. phoneme r- // linking r, used in English between certain vowels and a following vowel
  48. liquid rhotic
  49. ipa ɹ
  50. lengthmod 0
  51. NextVowelStarts
  52. VowelStart(r2/r2@)
  53. VowelStart(r2/r2a)
  54. VowelStart(r2/r2e)
  55. VowelStart(r2/r2i)
  56. VowelStart(r2/r2o)
  57. VowelStart(r2/r2u)
  58. EndSwitch
  59. IF prevPh(isVowel) THEN
  60. VowelEnding(r/xr, -60)
  61. ENDIF
  62. FMT(r/r)
  63. endphoneme
  64. phoneme z/2 // used for 's suffix
  65. vcd alv frc sibilant
  66. lengthmod 6
  67. IF prevPh(isSibilant) THEN
  68. InsertPhoneme(I2)
  69. ENDIF
  70. IF prevPh(isVoiced) THEN
  71. ELSE
  72. ChangePhoneme(s)
  73. ENDIF
  74. ChangePhoneme(z)
  75. endphoneme
  76. //*******************************************************************
  77. // VOWELS
  78. //*******************************************************************
  79. phoneme @ // Schwa
  80. vowel starttype #@ endtype #@
  81. unstressed
  82. length 140
  83. IfNextVowelAppend(r-)
  84. IF thisPh(isWordEnd) THEN
  85. FMT(vowel/@_6)
  86. ENDIF
  87. FMT(vowel/@)
  88. endphoneme
  89. phoneme 3 // Schwa, used for rhotic schwa in American
  90. vowel starttype #@ endtype #@
  91. unstressed
  92. length 140
  93. ipa ə
  94. CALL @
  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. ipa ɐ
  133. unstressed
  134. length 150
  135. FMT(vowel/a#_3)
  136. endphoneme
  137. phoneme aa // 'bath' etc.
  138. vowel starttype #a endtype #a
  139. ipa a
  140. length 185
  141. IfNextVowelAppend(r-)
  142. FMT(vowel/a)
  143. endphoneme
  144. phoneme E
  145. vowel starttype #e endtype #e
  146. length 140
  147. ChangeIfDiminished(I2)
  148. FMT(vowel/ee_5)
  149. endphoneme
  150. phoneme I
  151. vowel starttype #i endtype #i
  152. length 130
  153. IfNextVowelAppend(;)
  154. FMT(vowel/ii_2)
  155. endphoneme
  156. phoneme I2
  157. vowel starttype #i endtype #i
  158. unstressed
  159. length 130
  160. IfNextVowelAppend(;)
  161. FMT(vowel/ii_4)
  162. endphoneme
  163. phoneme i // optional variant of [I] for end of words
  164. vowel starttype #i endtype #i
  165. length 140
  166. IfNextVowelAppend(;)
  167. FMT(vowel/ii_en)
  168. endphoneme
  169. phoneme 0
  170. vowel starttype #o endtype #o
  171. length 140
  172. ChangeIfDiminished(@)
  173. FMT(vowel/0)
  174. endphoneme
  175. phoneme V
  176. vowel starttype #a endtype #@
  177. length 140
  178. ChangeIfDiminished(@)
  179. FMT(vowel/V_2)
  180. endphoneme
  181. phoneme U
  182. vowel starttype #o endtype #o
  183. length 150
  184. FMT(vowel/uu)
  185. endphoneme
  186. phoneme A:
  187. vowel starttype #a endtype #a
  188. length 230
  189. IfNextVowelAppend(r-)
  190. FMT(vowel/aa_2)
  191. endphoneme
  192. phoneme A@ // Used for [A:] when followed by 'r'
  193. vowel starttype #a endtype #a
  194. ipa ɑː
  195. length 230
  196. IfNextVowelAppend(r-)
  197. FMT(vowel/aa_2)
  198. endphoneme
  199. phoneme 3:
  200. vowel starttype #@ endtype #@
  201. length 210
  202. IfNextVowelAppend(r-)
  203. ChangeIfDiminished(@)
  204. FMT(vowel/3_en)
  205. endphoneme
  206. phoneme i:
  207. vowel starttype #i endtype #i
  208. length 175
  209. IfNextVowelAppend(;)
  210. IF prevPh(w) THEN
  211. VowelStart(w/wi2)
  212. ENDIF
  213. FMT(vowel/i_en)
  214. endphoneme
  215. phoneme O:
  216. vowel starttype #o endtype #o
  217. length 230
  218. ChangeIfDiminished(@)
  219. FMT(vowel/oo_en)
  220. endphoneme
  221. phoneme O
  222. vowel starttype #o endtype #o
  223. length 200
  224. ChangeIfDiminished(@)
  225. FMT(vowel/oo_en)
  226. endphoneme
  227. phoneme O@
  228. vowel starttype #o endtype #o
  229. ipa ɔː
  230. length 240
  231. IfNextVowelAppend(r-)
  232. FMT(vowel/oo_en)
  233. endphoneme
  234. phoneme o@
  235. vowel starttype #o endtype #o
  236. ipa ɔː
  237. length 250
  238. IfNextVowelAppend(r-)
  239. FMT(vowel/oo_en)
  240. endphoneme
  241. phoneme u:
  242. vowel starttype #u endtype #u
  243. length 210
  244. IF nextPh(l/2) THEN
  245. FMT(vwl_en/u_L)
  246. ENDIF
  247. FMT(vdiph2/uw_2)
  248. endphoneme
  249. phoneme aU
  250. vowel starttype #a endtype #u
  251. length 230
  252. FMT(vdiph/au)
  253. endphoneme
  254. phoneme oU
  255. vowel starttype #@ endtype #u
  256. ipa əʊ
  257. length 220
  258. FMT(vdiph/@u_en)
  259. endphoneme
  260. phoneme aI
  261. vowel starttype #a endtype #i
  262. length 240
  263. IF nextPh(#a) OR nextPh(#o) THEN
  264. AppendPhoneme(;)
  265. ENDIF
  266. FMT(vdiph/ai_2)
  267. endphoneme
  268. phoneme eI
  269. vowel starttype #e endtype #i
  270. length 210
  271. FMT(vdiph/eei)
  272. endphoneme
  273. phoneme OI
  274. vowel starttype #o endtype #i
  275. length 230
  276. FMT(vdiph/ooi)
  277. endphoneme
  278. phoneme e@
  279. vowel starttype #e endtype #@
  280. length 230
  281. IfNextVowelAppend(r-)
  282. FMT(vowel/ee_1)
  283. endphoneme
  284. phoneme i@
  285. vowel starttype #i endtype #@
  286. length 250
  287. IfNextVowelAppend(r-)
  288. FMT(vdiph2/ii@)
  289. endphoneme
  290. phoneme i@3
  291. vowel starttype #i endtype #@
  292. length 250
  293. IfNextVowelAppend(r-)
  294. FMT(vdiph2/ii@)
  295. endphoneme
  296. phoneme U@
  297. vowel starttype #u endtype #@
  298. length 200
  299. IfNextVowelAppend(r-)
  300. FMT(vdiph2/uu@)
  301. endphoneme
  302. phoneme aI@
  303. vowel starttype #a endtype #@
  304. length 280
  305. IfNextVowelAppend(r-)
  306. FMT(vwl_en/aI@)
  307. endphoneme
  308. phoneme aU@
  309. vowel starttype #a endtype #@
  310. length 280
  311. IfNextVowelAppend(r-)
  312. FMT(vwl_en/aU@)
  313. endphoneme
  314. phoneme IR // used for "ir" when [3:] is split (Scottish)
  315. vowel starttype #@ endtype #@
  316. length 190
  317. ipa əɹ
  318. IF nextPhW(r-) THEN
  319. ipa ə
  320. ENDIF
  321. IfNextVowelAppend(r-)
  322. FMT(vowelr/V_r)
  323. endphoneme
  324. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  325. vowel starttype #@ endtype #@
  326. length 210
  327. ipa ʌɹ
  328. IF nextPhW(r-) THEN
  329. ipa ʌ
  330. ENDIF
  331. IfNextVowelAppend(r-)
  332. FMT(vowelr/V3_r)
  333. endphoneme
  334. phoneme o:
  335. vowel starttype #o endtype #o
  336. length 220
  337. FMT(vowel/o)
  338. endphoneme
  339. phoneme A~
  340. vowel starttype #a endtype #a
  341. length 260
  342. FMT(vnasal/aa_n2)
  343. endphoneme
  344. phoneme O~
  345. vowel starttype #o endtype #o
  346. length 240
  347. FMT(vnasal/oo_n2)
  348. endphoneme
  349. phoneme e:
  350. vowel starttype #e endtype #e
  351. length 210
  352. FMT(vowel/e)
  353. endphoneme