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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  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. 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. length 140
  163. IfNextVowelAppend(;)
  164. FMT(vowel/ii_en)
  165. endphoneme
  166. phoneme 0
  167. vowel starttype #o endtype #o
  168. length 140
  169. ChangeIfDiminished(@)
  170. FMT(vowel/0)
  171. endphoneme
  172. phoneme V
  173. vowel starttype #a endtype #@
  174. length 140
  175. ChangeIfDiminished(@)
  176. FMT(vowel/V_2)
  177. endphoneme
  178. phoneme U
  179. vowel starttype #o endtype #o
  180. length 150
  181. FMT(vowel/uu)
  182. endphoneme
  183. phoneme A:
  184. vowel starttype #a endtype #a
  185. length 230
  186. IfNextVowelAppend(r-)
  187. FMT(vowel/aa_2)
  188. endphoneme
  189. phoneme A@ // Used for [A:] when followed by 'r'
  190. vowel starttype #a endtype #a
  191. ipa ɑː
  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
  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. ipa ɔː
  227. length 240
  228. IfNextVowelAppend(r-)
  229. FMT(vowel/oo_en)
  230. endphoneme
  231. phoneme o@
  232. vowel starttype #o endtype #o
  233. ipa ɔː
  234. length 250
  235. IfNextVowelAppend(r-)
  236. FMT(vowel/oo_en)
  237. endphoneme
  238. phoneme u:
  239. vowel starttype #u endtype #u
  240. length 210
  241. IF nextPh(l/2) THEN
  242. FMT(vwl_en/u_L)
  243. ENDIF
  244. FMT(vdiph2/uw_2)
  245. endphoneme
  246. phoneme aU
  247. vowel starttype #a endtype #u
  248. length 230
  249. FMT(vdiph/au)
  250. endphoneme
  251. phoneme oU
  252. vowel starttype #@ endtype #u
  253. ipa əʊ
  254. length 220
  255. FMT(vdiph/@u_en)
  256. endphoneme
  257. phoneme aI
  258. vowel starttype #a endtype #i
  259. length 240
  260. IF nextPh(#a) OR nextPh(#o) THEN
  261. AppendPhoneme(;)
  262. ENDIF
  263. FMT(vdiph/ai_2)
  264. endphoneme
  265. phoneme eI
  266. vowel starttype #e endtype #i
  267. length 210
  268. FMT(vdiph/eei)
  269. endphoneme
  270. phoneme OI
  271. vowel starttype #o endtype #i
  272. length 230
  273. FMT(vdiph/ooi)
  274. endphoneme
  275. phoneme e@
  276. vowel starttype #e endtype #@
  277. length 230
  278. IfNextVowelAppend(r-)
  279. FMT(vowel/ee_1)
  280. endphoneme
  281. phoneme i@
  282. vowel starttype #i endtype #@
  283. length 250
  284. IfNextVowelAppend(r-)
  285. FMT(vdiph2/ii@)
  286. endphoneme
  287. phoneme i@3
  288. vowel starttype #i endtype #@
  289. length 250
  290. IfNextVowelAppend(r-)
  291. FMT(vdiph2/ii@)
  292. endphoneme
  293. phoneme U@
  294. vowel starttype #u endtype #@
  295. length 200
  296. IfNextVowelAppend(r-)
  297. FMT(vdiph2/uu@)
  298. endphoneme
  299. phoneme aI@
  300. vowel starttype #a endtype #@
  301. length 280
  302. IfNextVowelAppend(r-)
  303. FMT(vwl_en/aI@)
  304. endphoneme
  305. phoneme aU@
  306. vowel starttype #a endtype #@
  307. length 280
  308. IfNextVowelAppend(r-)
  309. FMT(vwl_en/aU@)
  310. endphoneme
  311. phoneme IR // used for "ir" when [3:] is split (Scottish)
  312. vowel starttype #@ endtype #@
  313. length 190
  314. ipa əɹ
  315. IF nextPhW(r-) THEN
  316. ipa ə
  317. ENDIF
  318. IfNextVowelAppend(r-)
  319. FMT(vowelr/V_r)
  320. endphoneme
  321. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  322. vowel starttype #@ endtype #@
  323. length 210
  324. ipa ʌɹ
  325. IF nextPhW(r-) THEN
  326. ipa ʌ
  327. ENDIF
  328. IfNextVowelAppend(r-)
  329. FMT(vowelr/V3_r)
  330. endphoneme
  331. phoneme o:
  332. vowel starttype #o endtype #o
  333. length 220
  334. FMT(vowel/o)
  335. endphoneme
  336. phoneme A~
  337. vowel starttype #a endtype #a
  338. length 260
  339. FMT(vnasal/aa_n2)
  340. endphoneme
  341. phoneme O~
  342. vowel starttype #o endtype #o
  343. length 240
  344. FMT(vnasal/oo_n2)
  345. endphoneme
  346. phoneme e:
  347. vowel starttype #e endtype #e
  348. length 210
  349. FMT(vowel/e)
  350. endphoneme