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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. phoneme t2 // [t] which doesn't reduce
  2. vcd alv stop
  3. ChangePhoneme(t)
  4. endphoneme
  5. phoneme t# // reduced [t] as in "city"
  6. vcd alv stop
  7. ipa ɾ
  8. lengthmod 5
  9. Vowelin f1=1 f2=1700 -300 300 f3=-100 80
  10. Vowelout f1=2 f2=1700 -300 300 f3=-100 80
  11. IF KlattSynth THEN
  12. IF PreVoicing THEN
  13. FMT(klatt/x_tap)
  14. ENDIF
  15. FMT(klatt/tap2) addWav(x/d, 70)
  16. ENDIF
  17. IF PreVoicing THEN
  18. FMT(d/x_tap)
  19. ENDIF
  20. FMT(d/tap2) addWav(x/d, 70)
  21. endphoneme
  22. phoneme d# // change to [d] or [t] depending on whether previous phoneme is voiced
  23. vls alv stop
  24. IF prevPh(isVoiced) THEN
  25. ChangePhoneme(d)
  26. ELSE
  27. ChangePhoneme(t)
  28. ENDIF
  29. endphoneme
  30. phoneme z# // change to [z] or [s] depending on whether previous phoneme is voiced
  31. vls alv frc sibilant
  32. IF prevPh(isVoiced) THEN
  33. ChangePhoneme(z)
  34. ELSE
  35. ChangePhoneme(s)
  36. ENDIF
  37. endphoneme
  38. phoneme l // use dark [l/2] before not-vowel
  39. liquid
  40. lengthmod 7
  41. IF NOT nextPhW(isVowel) THEN
  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 NOT prevPh(isVoiced) THEN
  87. ChangePhoneme(s)
  88. ENDIF
  89. ChangePhoneme(z)
  90. endphoneme
  91. //*******************************************************************
  92. // VOWELS
  93. //*******************************************************************
  94. phoneme @ // Schwa
  95. vowel starttype #@ endtype #@
  96. unstressed
  97. length 140
  98. IfNextVowelAppend(r-)
  99. IF thisPh(isWordEnd) THEN
  100. FMT(vowel/@_6)
  101. ENDIF
  102. FMT(vowel/@)
  103. endphoneme
  104. phoneme 3 // Schwa, used for rhotic schwa in American
  105. CALL @
  106. ipa ə
  107. endphoneme
  108. phoneme @2 // Schwa, changes to I before a vowel
  109. vowel starttype #@ endtype #@
  110. unstressed
  111. length 120
  112. IF nextPh(isVowel) THEN
  113. ChangePhoneme(I2)
  114. ENDIF
  115. ChangePhoneme(@)
  116. endphoneme
  117. phoneme @5 // Schwa, changes to U before a vowel
  118. vowel starttype #@ endtype #@
  119. unstressed
  120. length 140
  121. IF nextPh(isVowel) OR nextPh(isPause) THEN
  122. ChangePhoneme(U)
  123. ENDIF
  124. ChangePhoneme(@)
  125. endphoneme
  126. phoneme @L
  127. vowel starttype #@ endtype l
  128. ipa ə|l
  129. unstressed
  130. length 160
  131. CALL vowelstart_l
  132. FMT(vwl_en/@L)
  133. endphoneme
  134. phoneme a
  135. vowel starttype #a endtype #a
  136. length 160
  137. ChangeIfDiminished(a#)
  138. IF thisPh(isUnstressed) THEN
  139. FMT(vowel/a_8)
  140. ENDIF
  141. FMT(vowel/a)
  142. endphoneme
  143. phoneme a#
  144. vowel starttype #@ endtype #@
  145. ipa ɐ
  146. unstressed
  147. length 150
  148. FMT(vowel/a#_3)
  149. endphoneme
  150. phoneme aa // 'bath' etc.
  151. vowel starttype #a endtype #a
  152. ipa a
  153. length 185
  154. IfNextVowelAppend(r-)
  155. FMT(vowel/a)
  156. endphoneme
  157. phoneme E
  158. vowel starttype #e endtype #e
  159. length 140
  160. ChangeIfDiminished(I2)
  161. FMT(vowel/ee_5)
  162. endphoneme
  163. phoneme I
  164. vowel starttype #i endtype #i
  165. length 130
  166. IfNextVowelAppend(;)
  167. FMT(vowel/ii_2)
  168. endphoneme
  169. phoneme I2
  170. vowel starttype #i endtype #i
  171. unstressed
  172. length 130
  173. IfNextVowelAppend(;)
  174. FMT(vowel/ii_4)
  175. endphoneme
  176. phoneme I# // used for [I] which may be [@] in some accents
  177. vowel starttype #i endtype #i
  178. unstressed
  179. length 130
  180. IfNextVowelAppend(;)
  181. ChangePhoneme(I2)
  182. endphoneme
  183. phoneme i // optional variant of [I] for end of words
  184. vowel starttype #i endtype #i
  185. ipa ɪ
  186. length 140
  187. IfNextVowelAppend(;)
  188. FMT(vowel/ii_7)
  189. endphoneme
  190. phoneme 0
  191. vowel starttype #o endtype #o
  192. length 140
  193. ChangeIfDiminished(@)
  194. FMT(vowel/0)
  195. endphoneme
  196. phoneme 0# // [@] in unstressed syllables
  197. vowel starttype #o endtype #o
  198. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  199. ChangePhoneme(@)
  200. ENDIF
  201. ChangePhoneme(0)
  202. endphoneme
  203. phoneme V
  204. vowel starttype #a endtype #@
  205. length 140
  206. ChangeIfDiminished(@)
  207. FMT(vowel/V_2)
  208. endphoneme
  209. phoneme U
  210. vowel starttype #o endtype #o
  211. length 150
  212. FMT(vowel/uu)
  213. endphoneme
  214. phoneme A:
  215. vowel starttype #a endtype #a
  216. length 230
  217. IfNextVowelAppend(r-)
  218. FMT(vowel/aa_2)
  219. endphoneme
  220. phoneme A@ // Used for [A:] when followed by 'r'
  221. vowel starttype #a endtype #a
  222. ipa ɑː
  223. length 230
  224. IfNextVowelAppend(r-)
  225. FMT(vowel/aa_2)
  226. endphoneme
  227. phoneme 3:
  228. vowel starttype #@ endtype #@
  229. length 210
  230. IfNextVowelAppend(r-)
  231. ChangeIfDiminished(@)
  232. FMT(vowel/3_en)
  233. endphoneme
  234. phoneme i:
  235. vowel starttype #i endtype #i
  236. length 175
  237. IfNextVowelAppend(;)
  238. IF prevPh(w) THEN
  239. VowelStart(w/wi2)
  240. ENDIF
  241. FMT(vowel/i_en)
  242. endphoneme
  243. phoneme O:
  244. vowel starttype #o endtype #o
  245. length 230
  246. ChangeIfDiminished(@)
  247. FMT(vowel/oo_en)
  248. endphoneme
  249. phoneme O
  250. vowel starttype #o endtype #o
  251. length 200
  252. ChangeIfDiminished(@)
  253. FMT(vowel/oo_en)
  254. endphoneme
  255. phoneme O@
  256. vowel starttype #o endtype #o
  257. ipa ɔː
  258. length 240
  259. IfNextVowelAppend(r-)
  260. FMT(vowel/oo_en)
  261. endphoneme
  262. phoneme o@
  263. vowel starttype #o endtype #o
  264. ipa ɔː
  265. length 250
  266. IfNextVowelAppend(r-)
  267. FMT(vowel/oo_en)
  268. endphoneme
  269. phoneme u:
  270. vowel starttype #u endtype #u
  271. length 210
  272. IF nextPh(l/2) THEN
  273. FMT(vwl_en/u_L)
  274. ENDIF
  275. IF prevPhW(j) THEN
  276. length 180
  277. ENDIF
  278. FMT(vdiph2/uw_2)
  279. endphoneme
  280. phoneme aU
  281. vowel starttype #a endtype #u
  282. length 230
  283. FMT(vdiph/au)
  284. endphoneme
  285. phoneme oU
  286. vowel starttype #@ endtype #u
  287. ipa əʊ
  288. length 220
  289. FMT(vdiph/@u_en)
  290. endphoneme
  291. phoneme aI
  292. vowel starttype #a endtype #i
  293. length 240
  294. IF nextPh(#a) THEN
  295. AppendPhoneme(;)
  296. ENDIF
  297. FMT(vdiph/ai_2)
  298. endphoneme
  299. phoneme eI
  300. vowel starttype #e endtype #i
  301. length 210
  302. FMT(vdiph/eei)
  303. endphoneme
  304. phoneme OI
  305. vowel starttype #o endtype #i
  306. length 230
  307. FMT(vdiph/ooi)
  308. endphoneme
  309. phoneme e@
  310. vowel starttype #e endtype #@
  311. length 230
  312. IfNextVowelAppend(r-)
  313. FMT(vowel/ee_1)
  314. endphoneme
  315. phoneme i@
  316. vowel starttype #i endtype #@
  317. length 250
  318. IfNextVowelAppend(r-)
  319. FMT(vdiph2/ii@)
  320. endphoneme
  321. phoneme i@3
  322. vowel starttype #i endtype #@
  323. length 250
  324. IfNextVowelAppend(r-)
  325. FMT(vdiph2/ii@)
  326. endphoneme
  327. phoneme U@
  328. vowel starttype #u endtype #@
  329. length 200
  330. IfNextVowelAppend(r-)
  331. IF thisPh(isUnstressed) THEN
  332. FMT(vdiph2/8@)
  333. ENDIF
  334. FMT(vdiph2/uu@)
  335. endphoneme
  336. phoneme aI@
  337. vowel starttype #a endtype #@
  338. length 280
  339. IfNextVowelAppend(r-)
  340. FMT(vwl_en/aI@)
  341. endphoneme
  342. phoneme aI3
  343. vowel starttype #a endtype #@
  344. length 280
  345. ChangePhoneme(aI@)
  346. endphoneme
  347. phoneme aU@
  348. vowel starttype #a endtype #@
  349. length 280
  350. IfNextVowelAppend(r-)
  351. FMT(vwl_en/aU@)
  352. endphoneme
  353. phoneme IR // used for "ir" when [3:] is split (Scottish)
  354. vowel starttype #@ endtype #@
  355. length 190
  356. ipa əɹ
  357. IF nextPhW(r-) THEN
  358. ipa ə
  359. ENDIF
  360. IfNextVowelAppend(r-)
  361. FMT(vowelr/V_r)
  362. endphoneme
  363. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  364. vowel starttype #@ endtype #@
  365. length 210
  366. ipa ʌɹ
  367. IF nextPhW(r-) THEN
  368. ipa ʌ
  369. ENDIF
  370. IfNextVowelAppend(r-)
  371. FMT(vowelr/V3_r)
  372. endphoneme
  373. phoneme o:
  374. vowel starttype #o endtype #o
  375. length 220
  376. FMT(vowel/o)
  377. endphoneme
  378. phoneme A~
  379. vowel starttype #a endtype #a
  380. length 260
  381. FMT(vnasal/aa_n2)
  382. endphoneme
  383. phoneme O~
  384. vowel starttype #o endtype #o
  385. length 240
  386. FMT(vnasal/oo_n2)
  387. endphoneme
  388. phoneme e:
  389. vowel starttype #e endtype #e
  390. length 210
  391. FMT(vowel/e)
  392. endphoneme
  393. phoneme @# // TEST: [@] which is slightly more 'front'
  394. vowel starttype #i endtype #i
  395. unstressed
  396. length 130
  397. FMT(vowel/@_3)
  398. endphoneme