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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  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. IF nextPh(isVowel) THEN
  116. FMT(vowel/ii_4)
  117. ENDIF
  118. FMT(vowel/@)
  119. endphoneme
  120. phoneme @5 // Schwa, changes to U before a vowel
  121. vowel starttype #@ endtype #@
  122. unstressed
  123. length 140
  124. IF nextPh(isVowel) OR nextPh(isPause) THEN
  125. ChangePhoneme(U)
  126. ENDIF
  127. FMT(vowel/@)
  128. endphoneme
  129. phoneme @L
  130. vowel starttype #@ endtype l
  131. ipa ə|l
  132. unstressed
  133. length 160
  134. CALL vowelstart_l
  135. FMT(vwl_en/@L)
  136. endphoneme
  137. phoneme a
  138. vowel starttype #a endtype #a
  139. length 160
  140. ChangeIfDiminished(a#)
  141. IF thisPh(isUnstressed) THEN
  142. FMT(vowel/a_8)
  143. ENDIF
  144. FMT(vowel/a)
  145. endphoneme
  146. phoneme a#
  147. vowel starttype #@ endtype #@
  148. ipa ɐ
  149. unstressed
  150. length 150
  151. FMT(vowel/a#_3)
  152. endphoneme
  153. phoneme aa // 'bath' etc.
  154. vowel starttype #a endtype #a
  155. ipa a
  156. length 185
  157. IfNextVowelAppend(r-)
  158. FMT(vowel/a)
  159. endphoneme
  160. phoneme E
  161. vowel starttype #e endtype #e
  162. length 140
  163. ChangeIfDiminished(I2)
  164. FMT(vowel/ee_5)
  165. endphoneme
  166. phoneme I
  167. vowel starttype #i endtype #i
  168. length 130
  169. IfNextVowelAppend(;)
  170. FMT(vowel/ii_2)
  171. endphoneme
  172. phoneme I2
  173. vowel starttype #i endtype #i
  174. unstressed
  175. length 130
  176. IfNextVowelAppend(;)
  177. FMT(vowel/ii_4)
  178. endphoneme
  179. phoneme I# // used for [I] which may be [@] in some accents
  180. vowel starttype #i endtype #i
  181. unstressed
  182. length 130
  183. IfNextVowelAppend(;)
  184. ChangePhoneme(I2)
  185. endphoneme
  186. phoneme i // optional variant of [I] for end of words
  187. vowel starttype #i endtype #i
  188. ipa ɪ
  189. length 140
  190. IfNextVowelAppend(;)
  191. FMT(vowel/ii_7)
  192. endphoneme
  193. phoneme 0
  194. vowel starttype #o endtype #o
  195. length 140
  196. ChangeIfDiminished(@)
  197. FMT(vowel/0)
  198. endphoneme
  199. phoneme 0# // [@] in unstressed syllables
  200. vowel starttype #o endtype #o
  201. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  202. ChangePhoneme(@)
  203. ENDIF
  204. ChangePhoneme(0)
  205. endphoneme
  206. phoneme V
  207. vowel starttype #a endtype #@
  208. length 140
  209. ChangeIfDiminished(@)
  210. FMT(vowel/V_2)
  211. endphoneme
  212. phoneme U
  213. vowel starttype #o endtype #o
  214. length 150
  215. FMT(vowel/uu)
  216. endphoneme
  217. phoneme A:
  218. vowel starttype #a endtype #a
  219. length 230
  220. IfNextVowelAppend(r-)
  221. FMT(vowel/aa_2)
  222. endphoneme
  223. phoneme A@ // Used for [A:] when followed by 'r'
  224. vowel starttype #a endtype #a
  225. ipa ɑː
  226. length 230
  227. IfNextVowelAppend(r-)
  228. FMT(vowel/aa_2)
  229. endphoneme
  230. phoneme 3:
  231. vowel starttype #@ endtype #@
  232. length 210
  233. IfNextVowelAppend(r-)
  234. ChangeIfDiminished(@)
  235. FMT(vowel/3_en)
  236. endphoneme
  237. phoneme i:
  238. vowel starttype #i endtype #i
  239. length 175
  240. IfNextVowelAppend(;)
  241. IF prevPh(w) THEN
  242. VowelStart(w/wi2)
  243. ENDIF
  244. FMT(vowel/i_en)
  245. endphoneme
  246. phoneme O:
  247. vowel starttype #o endtype #o
  248. length 230
  249. ChangeIfDiminished(@)
  250. FMT(vowel/oo_en)
  251. endphoneme
  252. phoneme O
  253. vowel starttype #o endtype #o
  254. length 200
  255. ChangeIfDiminished(@)
  256. FMT(vowel/oo_en)
  257. endphoneme
  258. phoneme O@
  259. vowel starttype #o endtype #o
  260. ipa ɔː
  261. length 240
  262. IfNextVowelAppend(r-)
  263. FMT(vowel/oo_en)
  264. endphoneme
  265. phoneme o@
  266. vowel starttype #o endtype #o
  267. ipa ɔː
  268. length 250
  269. IfNextVowelAppend(r-)
  270. FMT(vowel/oo_en)
  271. endphoneme
  272. phoneme u:
  273. vowel starttype #u endtype #u
  274. length 210
  275. IF nextPh(l/2) THEN
  276. FMT(vwl_en/u_L)
  277. ENDIF
  278. IF prevPhW(j) THEN
  279. length 180
  280. ENDIF
  281. FMT(vdiph2/uw_2)
  282. endphoneme
  283. phoneme aU
  284. vowel starttype #a endtype #u
  285. length 230
  286. FMT(vdiph/au)
  287. endphoneme
  288. phoneme oU
  289. vowel starttype #@ endtype #u
  290. ipa əʊ
  291. length 220
  292. FMT(vdiph/@u_en)
  293. endphoneme
  294. phoneme aI
  295. vowel starttype #a endtype #i
  296. length 240
  297. IF nextPh(#a) THEN
  298. AppendPhoneme(;)
  299. ENDIF
  300. FMT(vdiph/ai_2)
  301. endphoneme
  302. phoneme eI
  303. vowel starttype #e endtype #i
  304. length 210
  305. FMT(vdiph/eei)
  306. endphoneme
  307. phoneme OI
  308. vowel starttype #o endtype #i
  309. length 230
  310. FMT(vdiph/ooi)
  311. endphoneme
  312. phoneme e@
  313. vowel starttype #e endtype #@
  314. length 230
  315. IfNextVowelAppend(r-)
  316. FMT(vowel/ee_1)
  317. endphoneme
  318. phoneme i@
  319. vowel starttype #i endtype #@
  320. length 250
  321. IfNextVowelAppend(r-)
  322. FMT(vdiph2/ii@)
  323. endphoneme
  324. phoneme i@3
  325. vowel starttype #i endtype #@
  326. length 250
  327. IfNextVowelAppend(r-)
  328. FMT(vdiph2/ii@)
  329. endphoneme
  330. phoneme U@
  331. vowel starttype #u endtype #@
  332. length 200
  333. IfNextVowelAppend(r-)
  334. IF thisPh(isUnstressed) THEN
  335. FMT(vdiph2/8@)
  336. ENDIF
  337. FMT(vdiph2/uu@)
  338. endphoneme
  339. phoneme aI@
  340. vowel starttype #a endtype #@
  341. length 280
  342. IfNextVowelAppend(r-)
  343. FMT(vwl_en/aI@)
  344. endphoneme
  345. phoneme aI3
  346. vowel starttype #a endtype #@
  347. length 280
  348. ChangePhoneme(aI@)
  349. endphoneme
  350. phoneme aU@
  351. vowel starttype #a endtype #@
  352. length 280
  353. IfNextVowelAppend(r-)
  354. FMT(vwl_en/aU@)
  355. endphoneme
  356. phoneme IR // used for "ir" when [3:] is split (Scottish)
  357. vowel starttype #@ endtype #@
  358. length 190
  359. ipa əɹ
  360. IF nextPhW(r-) THEN
  361. ipa ə
  362. ENDIF
  363. IfNextVowelAppend(r-)
  364. FMT(vowelr/V_r)
  365. endphoneme
  366. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  367. vowel starttype #@ endtype #@
  368. length 210
  369. ipa ʌɹ
  370. IF nextPhW(r-) THEN
  371. ipa ʌ
  372. ENDIF
  373. IfNextVowelAppend(r-)
  374. FMT(vowelr/V3_r)
  375. endphoneme
  376. phoneme o:
  377. vowel starttype #o endtype #o
  378. length 220
  379. FMT(vowel/o)
  380. endphoneme
  381. phoneme A~
  382. vowel starttype #a endtype #a
  383. length 260
  384. FMT(vnasal/aa_n2)
  385. endphoneme
  386. phoneme O~
  387. vowel starttype #o endtype #o
  388. length 240
  389. FMT(vnasal/oo_n2)
  390. endphoneme
  391. phoneme e:
  392. vowel starttype #e endtype #e
  393. length 210
  394. FMT(vowel/e)
  395. endphoneme
  396. phoneme @# // TEST: [@] which is slightly more 'front'
  397. vowel starttype #i endtype #i
  398. unstressed
  399. length 130
  400. FMT(vowel/@_3)
  401. endphoneme