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

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