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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  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(isVowel) OR prevPh(j) OR prevPh(w) THEN
  27. ChangePhoneme(l/2)
  28. ELSE
  29. ChangePhoneme(l/)
  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. CALL @
  91. ipa ə
  92. endphoneme
  93. phoneme @2 // Schwa, changes to I before a vowel
  94. vowel starttype #@ endtype #@
  95. unstressed
  96. length 120
  97. IF nextPh(isVowel) THEN
  98. ChangePhoneme(I2)
  99. ENDIF
  100. FMT(vowel/@)
  101. endphoneme
  102. phoneme @5 // Schwa, changes to U before a vowel
  103. vowel starttype #@ endtype #@
  104. unstressed
  105. length 140
  106. IF nextPh(isVowel) OR nextPh(isPause) THEN
  107. ChangePhoneme(U)
  108. ENDIF
  109. FMT(vowel/@)
  110. endphoneme
  111. phoneme @L
  112. vowel starttype #@ endtype l
  113. unstressed
  114. length 160
  115. CALL vowelstart_l
  116. FMT(vwl_en/@L)
  117. endphoneme
  118. phoneme a
  119. vowel starttype #a endtype #a
  120. length 160
  121. ChangeIfDiminished(a#)
  122. IF thisPh(isUnstressed) THEN
  123. FMT(vowel/a_7)
  124. ENDIF
  125. FMT(vowel/a)
  126. endphoneme
  127. phoneme a#
  128. vowel starttype #@ endtype #@
  129. ipa ɐ
  130. unstressed
  131. length 150
  132. FMT(vowel/a#_3)
  133. endphoneme
  134. phoneme aa // 'bath' etc.
  135. vowel starttype #a endtype #a
  136. ipa a
  137. length 185
  138. IfNextVowelAppend(r-)
  139. FMT(vowel/a)
  140. endphoneme
  141. phoneme E
  142. vowel starttype #e endtype #e
  143. length 140
  144. ChangeIfDiminished(I2)
  145. FMT(vowel/ee_5)
  146. endphoneme
  147. phoneme I
  148. vowel starttype #i endtype #i
  149. length 130
  150. IfNextVowelAppend(;)
  151. FMT(vowel/ii_2)
  152. endphoneme
  153. phoneme I2
  154. vowel starttype #i endtype #i
  155. unstressed
  156. length 130
  157. IfNextVowelAppend(;)
  158. FMT(vowel/ii_4)
  159. endphoneme
  160. phoneme i // optional variant of [I] for end of words
  161. vowel starttype #i endtype #i
  162. ipa ɪ
  163. length 140
  164. IfNextVowelAppend(;)
  165. FMT(vowel/ii_7)
  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. ipa ɑː
  193. length 230
  194. IfNextVowelAppend(r-)
  195. FMT(vowel/aa_2)
  196. endphoneme
  197. phoneme 3:
  198. vowel starttype #@ endtype #@
  199. length 210
  200. IfNextVowelAppend(r-)
  201. ChangeIfDiminished(@)
  202. FMT(vowel/3_en)
  203. endphoneme
  204. phoneme i:
  205. vowel starttype #i endtype #i
  206. length 175
  207. IfNextVowelAppend(;)
  208. IF prevPh(w) THEN
  209. VowelStart(w/wi2)
  210. ENDIF
  211. FMT(vowel/i_en)
  212. endphoneme
  213. phoneme O:
  214. vowel starttype #o endtype #o
  215. length 230
  216. ChangeIfDiminished(@)
  217. FMT(vowel/oo_en)
  218. endphoneme
  219. phoneme O
  220. vowel starttype #o endtype #o
  221. length 200
  222. ChangeIfDiminished(@)
  223. FMT(vowel/oo_en)
  224. endphoneme
  225. phoneme O@
  226. vowel starttype #o endtype #o
  227. ipa ɔː
  228. length 240
  229. IfNextVowelAppend(r-)
  230. FMT(vowel/oo_en)
  231. endphoneme
  232. phoneme o@
  233. vowel starttype #o endtype #o
  234. ipa ɔː
  235. length 250
  236. IfNextVowelAppend(r-)
  237. FMT(vowel/oo_en)
  238. endphoneme
  239. phoneme u:
  240. vowel starttype #u endtype #u
  241. length 210
  242. IF nextPh(l/2) THEN
  243. FMT(vwl_en/u_L)
  244. ENDIF
  245. FMT(vdiph2/uw_2)
  246. endphoneme
  247. phoneme aU
  248. vowel starttype #a endtype #u
  249. length 230
  250. FMT(vdiph/au)
  251. endphoneme
  252. phoneme oU
  253. vowel starttype #@ endtype #u
  254. ipa əʊ
  255. length 220
  256. FMT(vdiph/@u_en)
  257. endphoneme
  258. phoneme aI
  259. vowel starttype #a endtype #i
  260. length 240
  261. IF nextPh(#a) THEN
  262. AppendPhoneme(;)
  263. ENDIF
  264. FMT(vdiph/ai_2)
  265. endphoneme
  266. phoneme eI
  267. vowel starttype #e endtype #i
  268. length 210
  269. FMT(vdiph/eei)
  270. endphoneme
  271. phoneme OI
  272. vowel starttype #o endtype #i
  273. length 230
  274. FMT(vdiph/ooi)
  275. endphoneme
  276. phoneme e@
  277. vowel starttype #e endtype #@
  278. length 230
  279. IfNextVowelAppend(r-)
  280. FMT(vowel/ee_1)
  281. endphoneme
  282. phoneme i@
  283. vowel starttype #i endtype #@
  284. length 250
  285. IfNextVowelAppend(r-)
  286. FMT(vdiph2/ii@)
  287. endphoneme
  288. phoneme i@3
  289. vowel starttype #i endtype #@
  290. length 250
  291. IfNextVowelAppend(r-)
  292. FMT(vdiph2/ii@)
  293. endphoneme
  294. phoneme U@
  295. vowel starttype #u endtype #@
  296. length 200
  297. IfNextVowelAppend(r-)
  298. IF thisPh(isUnstressed) THEN
  299. FMT(vdiph2/8@)
  300. ENDIF
  301. FMT(vdiph2/uu@)
  302. endphoneme
  303. phoneme aI@
  304. vowel starttype #a endtype #@
  305. length 280
  306. IfNextVowelAppend(r-)
  307. FMT(vwl_en/aI@)
  308. endphoneme
  309. phoneme aU@
  310. vowel starttype #a endtype #@
  311. length 280
  312. IfNextVowelAppend(r-)
  313. FMT(vwl_en/aU@)
  314. endphoneme
  315. phoneme IR // used for "ir" when [3:] is split (Scottish)
  316. vowel starttype #@ endtype #@
  317. length 190
  318. ipa əɹ
  319. IF nextPhW(r-) THEN
  320. ipa ə
  321. ENDIF
  322. IfNextVowelAppend(r-)
  323. FMT(vowelr/V_r)
  324. endphoneme
  325. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  326. vowel starttype #@ endtype #@
  327. length 210
  328. ipa ʌɹ
  329. IF nextPhW(r-) THEN
  330. ipa ʌ
  331. ENDIF
  332. IfNextVowelAppend(r-)
  333. FMT(vowelr/V3_r)
  334. endphoneme
  335. phoneme o:
  336. vowel starttype #o endtype #o
  337. length 220
  338. FMT(vowel/o)
  339. endphoneme
  340. phoneme A~
  341. vowel starttype #a endtype #a
  342. length 260
  343. FMT(vnasal/aa_n2)
  344. endphoneme
  345. phoneme O~
  346. vowel starttype #o endtype #o
  347. length 240
  348. FMT(vnasal/oo_n2)
  349. endphoneme
  350. phoneme e:
  351. vowel starttype #e endtype #e
  352. length 210
  353. FMT(vowel/e)
  354. endphoneme