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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. phoneme t2 // [t] which doesn't reduce
  2. vcd alv stop dontlist
  3. ChangePhoneme(t)
  4. endphoneme
  5. phoneme t# // reduced [t] as in "city" in en-us
  6. vcd alv stop
  7. ChangePhoneme(t)
  8. endphoneme
  9. phoneme d# // change to [d] or [t] depending on whether previous phoneme is voiced
  10. vls alv stop dontlist
  11. IF prevPh(isVoiced) THEN
  12. ChangePhoneme(d)
  13. ELSE
  14. ChangePhoneme(t)
  15. ENDIF
  16. endphoneme
  17. phoneme z# // change to [z] or [s] depending on whether previous phoneme is voiced
  18. vls alv frc sibilant dontlist
  19. IF prevPh(isVoiced) THEN
  20. ChangePhoneme(z)
  21. ELSE
  22. ChangePhoneme(s)
  23. ENDIF
  24. endphoneme
  25. phoneme l // use dark [l/2] before not-vowel
  26. liquid
  27. lengthmod 7
  28. IF NOT nextPhW(isVowel) THEN
  29. IF prevPh(isVowel) OR prevPh(j) OR prevPh(w) THEN
  30. ChangePhoneme(l/2)
  31. ELSE
  32. ChangePhoneme(l/)
  33. ENDIF
  34. ENDIF
  35. CALL base/l
  36. endphoneme
  37. phoneme r- // linking r, used in English between certain vowels and a following vowel
  38. liquid rhotic
  39. ipa ɹ
  40. IF NOT thisPh(isWordEnd) THEN
  41. ChangePhoneme(r)
  42. ENDIF
  43. // ChangePhoneme(r) // always use [r], not [r-] ?
  44. lengthmod 0
  45. NextVowelStarts
  46. VowelStart(r2/r2@)
  47. VowelStart(r2/r2a)
  48. VowelStart(r2/r2e)
  49. VowelStart(r2/r2i)
  50. VowelStart(r2/r2o)
  51. VowelStart(r2/r2u)
  52. EndSwitch
  53. IF prevPh(isVowel) THEN
  54. VowelEnding(r/xr, -60)
  55. ENDIF
  56. FMT(r/r)
  57. endphoneme
  58. phoneme z/2 // used for 's suffix
  59. vcd alv frc sibilant
  60. lengthmod 6
  61. IF prevPh(isSibilant) THEN
  62. InsertPhoneme(I2)
  63. ENDIF
  64. IF NOT prevPh(isVoiced) THEN
  65. ChangePhoneme(s)
  66. ENDIF
  67. ChangePhoneme(z)
  68. endphoneme
  69. phoneme w#
  70. vls glt apr // [h]
  71. ipa ʍ
  72. IF nextPh(isVowel) THEN
  73. NextVowelStarts
  74. VowelStart(w/w@)
  75. VowelStart(w/wa)
  76. VowelStart(w/we)
  77. VowelStart(w/wi)
  78. VowelStart(w/wo)
  79. VowelStart(w/wu)
  80. EndSwitch
  81. ENDIF
  82. WAV(h/hu, 70)
  83. endphoneme
  84. //*******************************************************************
  85. // VOWELS
  86. //*******************************************************************
  87. phoneme @ // Schwa
  88. vowel starttype #@ endtype #@
  89. unstressed
  90. length 140
  91. IfNextVowelAppend(r-)
  92. IF thisPh(isWordEnd) THEN
  93. FMT(vowel/@_6, 90)
  94. ENDIF
  95. FMT(vowel/@)
  96. endphoneme
  97. phoneme 3 // Schwa, used for rhotic schwa in American
  98. CALL @
  99. ipa ə
  100. endphoneme
  101. phoneme @2 // Schwa, changes to I before a vowel
  102. vowel starttype #@ endtype #@
  103. unstressed dontlist
  104. length 120
  105. IF nextPh(isVowel) THEN
  106. ChangePhoneme(I2)
  107. ENDIF
  108. ChangePhoneme(@)
  109. endphoneme
  110. phoneme @5 // Schwa, changes to U before a vowel
  111. vowel starttype #@ endtype #@
  112. unstressed dontlist
  113. length 140
  114. IF nextPh(isVowel) OR nextPh(isPause) THEN
  115. ChangePhoneme(U)
  116. ENDIF
  117. ChangePhoneme(@)
  118. endphoneme
  119. phoneme @L
  120. vowel starttype #@ endtype l
  121. ipa ə|l
  122. unstressed
  123. length 160
  124. CALL vowelstart_l
  125. FMT(vwl_en/@L)
  126. endphoneme
  127. phoneme a
  128. vowel starttype #a endtype #a
  129. length 160
  130. ChangeIfDiminished(a#)
  131. IF thisPh(isUnstressed) THEN
  132. FMT(vowel/a_8)
  133. ENDIF
  134. FMT(vowel/a)
  135. endphoneme
  136. phoneme a2 // don't reduce to a#
  137. vowel dontlist
  138. ChangePhoneme(a)
  139. endphoneme
  140. phoneme a#
  141. vowel starttype #@ endtype #@
  142. ipa ɐ
  143. unstressed
  144. length 150
  145. IF NOT thisPh(isUnstressed) THEN
  146. ChangePhoneme(a) // syllable has an explicit stress
  147. ENDIF
  148. FMT(vowel/a#_3)
  149. endphoneme
  150. phoneme aa // 'bath' etc.
  151. vowel starttype #a endtype #a
  152. ipa a
  153. length 200
  154. IF MbrolaSynth THEN
  155. ChangePhoneme(A:)
  156. ENDIF
  157. IfNextVowelAppend(r-)
  158. FMT(vowel/a_6, 88)
  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 E# // [@] in unstressed syllables, if next vowel is stressed
  167. vowel starttype #e endtype #e
  168. dontlist
  169. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
  170. ChangePhoneme(@)
  171. ENDIF
  172. ChangePhoneme(E)
  173. endphoneme
  174. phoneme E2 // does not reduce in unstressed syllables
  175. vowel starttype #e endtype #e
  176. dontlist
  177. length 140
  178. ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
  179. endphoneme
  180. phoneme I
  181. vowel starttype #i endtype #i
  182. length 130
  183. IfNextVowelAppend(;)
  184. FMT(vowel/ii_2)
  185. endphoneme
  186. phoneme I2
  187. vowel starttype #i endtype #i
  188. unstressed
  189. length 130
  190. IF MbrolaSynth THEN
  191. ChangePhoneme(I)
  192. ENDIF
  193. IfNextVowelAppend(;)
  194. IF thisPh(isAfterStress) AND thisPh(isFinalVowel) THEN
  195. FMT(vowel/ii#_3)
  196. ENDIF
  197. FMT(vowel/ii_4)
  198. endphoneme
  199. phoneme I# // used for [I] which may be [@] in some accents
  200. vowel starttype #i endtype #i
  201. unstressed
  202. length 130
  203. IF MbrolaSynth THEN
  204. ChangePhoneme(I)
  205. ENDIF
  206. IfNextVowelAppend(;)
  207. ChangePhoneme(I2)
  208. endphoneme
  209. phoneme i // optional variant of [I] for end of words
  210. vowel starttype #i endtype #i
  211. ipa i
  212. length 150
  213. IfNextVowelAppend(;)
  214. IF NOT thisPh(isFinalVowel) THEN
  215. ChangePhoneme(I)
  216. ENDIF
  217. FMT(vowel/ii_7)
  218. endphoneme
  219. phoneme 0
  220. vowel starttype #o endtype #o
  221. length 140
  222. ChangeIfDiminished(@)
  223. FMT(vowel/0)
  224. endphoneme
  225. phoneme 0# // [@] in unstressed syllables
  226. vowel starttype #o endtype #o
  227. dontlist
  228. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  229. ChangePhoneme(@)
  230. ENDIF
  231. ChangePhoneme(0)
  232. endphoneme
  233. phoneme 02 // becomes V in en-us
  234. vowel starttype #o endtype #o
  235. dontlist
  236. length 140
  237. ChangePhoneme(0)
  238. endphoneme
  239. phoneme V
  240. vowel starttype #a endtype #@
  241. length 140
  242. ChangeIfDiminished(@)
  243. FMT(vowel/V_2)
  244. endphoneme
  245. phoneme U
  246. vowel starttype #o endtype #o
  247. length 150
  248. IF prevPhW(j) THEN
  249. length 130
  250. FMT(vowel/8_2)
  251. ENDIF
  252. FMT(vowel/uu)
  253. endphoneme
  254. phoneme A:
  255. vowel starttype #a endtype #a
  256. length 230
  257. IfNextVowelAppend(r-)
  258. FMT(vowel/aa_2)
  259. endphoneme
  260. phoneme A@ // Used for [A:] when followed by 'r'
  261. vowel starttype #a endtype #a
  262. ipa ɑː
  263. length 230
  264. IfNextVowelAppend(r-)
  265. FMT(vowel/aa_2)
  266. endphoneme
  267. phoneme A# // [a] in British [A:] in American
  268. vowel starttype #a endtype #a
  269. dontlist
  270. ChangePhoneme(a)
  271. endphoneme
  272. phoneme 3:
  273. vowel starttype #@ endtype #@
  274. length 210
  275. IfNextVowelAppend(r-)
  276. ChangeIfDiminished(@)
  277. FMT(vowel/3_en)
  278. endphoneme
  279. phoneme i:
  280. vowel starttype #i endtype #i
  281. length 175
  282. IfNextVowelAppend(;)
  283. IF prevPh(w) THEN
  284. VowelStart(w/wi2)
  285. ENDIF
  286. FMT(vowel/i_en)
  287. endphoneme
  288. phoneme O:
  289. vowel starttype #o endtype #o
  290. length 230
  291. ChangeIfDiminished(@)
  292. FMT(vowel/oo_en)
  293. endphoneme
  294. phoneme O
  295. vowel starttype #o endtype #o
  296. length 200
  297. ChangeIfDiminished(@)
  298. FMT(vowel/oo_en)
  299. endphoneme
  300. phoneme O@
  301. vowel starttype #o endtype #o
  302. ipa ɔː
  303. length 240
  304. IfNextVowelAppend(r-)
  305. FMT(vowel/oo_en)
  306. endphoneme
  307. phoneme o@
  308. vowel starttype #o endtype #o
  309. ipa ɔː
  310. length 250
  311. IF MbrolaSynth THEN
  312. ChangePhoneme(O@)
  313. ENDIF
  314. IfNextVowelAppend(r-)
  315. FMT(vowel/oo_en)
  316. endphoneme
  317. phoneme u:
  318. vowel starttype #u endtype #u
  319. length 210
  320. IF nextPh(l/2) THEN
  321. FMT(vwl_en/u_L)
  322. ENDIF
  323. IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
  324. length 160
  325. ENDIF
  326. FMT(vdiph2/uw_2)
  327. endphoneme
  328. phoneme aU
  329. vowel starttype #a endtype #u
  330. length 230
  331. FMT(vdiph/au)
  332. endphoneme
  333. phoneme oU
  334. vowel starttype #@ endtype #u
  335. ipa əʊ
  336. length 220
  337. FMT(vdiph/@u_en)
  338. endphoneme
  339. phoneme oU#
  340. vowel dontlist
  341. IF thisPh(isStressed) THEN
  342. ChangePhoneme(0)
  343. ENDIF
  344. IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
  345. ChangePhoneme(@)
  346. ENDIF
  347. ChangePhoneme(oU)
  348. endphoneme
  349. phoneme aI
  350. vowel starttype #a endtype #i
  351. length 240
  352. IF nextPh(#a) THEN
  353. AppendPhoneme(;)
  354. ENDIF
  355. FMT(vdiph/ai_2)
  356. endphoneme
  357. phoneme eI
  358. vowel starttype #e endtype #i
  359. length 210
  360. FMT(vdiph/eei)
  361. endphoneme
  362. phoneme OI
  363. vowel starttype #o endtype #i
  364. length 230
  365. FMT(vdiph/ooi)
  366. endphoneme
  367. phoneme e@
  368. vowel starttype #e endtype #@
  369. length 230
  370. IfNextVowelAppend(r-)
  371. FMT(vowel/ee_1)
  372. endphoneme
  373. phoneme i@
  374. vowel starttype #i endtype #@
  375. length 250
  376. IfNextVowelAppend(r-)
  377. FMT(vdiph2/ii@)
  378. endphoneme
  379. phoneme i@3
  380. vowel starttype #i endtype #@
  381. length 250
  382. IF MbrolaSynth THEN
  383. ChangePhoneme(i@)
  384. ENDIF
  385. IfNextVowelAppend(r-)
  386. FMT(vdiph2/ii@)
  387. endphoneme
  388. phoneme U@
  389. vowel starttype #u endtype #@
  390. length 200
  391. IfNextVowelAppend(r-)
  392. IF thisPh(isUnstressed) THEN
  393. FMT(vdiph2/8@)
  394. ENDIF
  395. FMT(vdiph2/uu@)
  396. endphoneme
  397. phoneme aI@
  398. vowel starttype #a endtype #@
  399. length 280
  400. IfNextVowelAppend(r-)
  401. FMT(vwl_en/aI@)
  402. endphoneme
  403. phoneme aI3
  404. vowel starttype #a endtype #@
  405. length 280
  406. ChangePhoneme(aI@)
  407. endphoneme
  408. phoneme aU@
  409. vowel starttype #a endtype #@
  410. length 280
  411. IfNextVowelAppend(r-)
  412. FMT(vwl_en/aU@)
  413. endphoneme
  414. phoneme IR // used for "ir" when [3:] is split (Scottish)
  415. vowel starttype #@ endtype #@
  416. length 190
  417. ipa əɹ
  418. IF nextPhW(r-) THEN
  419. ipa ə
  420. ENDIF
  421. IfNextVowelAppend(r-)
  422. FMT(vowelr/V_r)
  423. endphoneme
  424. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  425. vowel starttype #@ endtype #@
  426. length 210
  427. ipa ʌɹ
  428. IF nextPhW(r-) THEN
  429. ipa ʌ
  430. ENDIF
  431. IfNextVowelAppend(r-)
  432. FMT(vowelr/V3_r)
  433. endphoneme
  434. phoneme o:
  435. vowel starttype #o endtype #o
  436. length 220
  437. FMT(vowel/o)
  438. endphoneme
  439. phoneme A~
  440. vowel starttype #a endtype #a
  441. length 260
  442. FMT(vnasal/aa_n2)
  443. endphoneme
  444. phoneme O~
  445. vowel starttype #o endtype #o
  446. length 240
  447. FMT(vnasal/oo_n2)
  448. endphoneme
  449. phoneme e:
  450. vowel starttype #e endtype #e
  451. length 210
  452. FMT(vowel/e)
  453. endphoneme
  454. phoneme a#2 // for word 'an'
  455. vowel dontlist
  456. IF next2Ph(isVowel) THEN
  457. ChangePhoneme(a#)
  458. ELSE
  459. ChangePhoneme(a)
  460. ENDIF
  461. endphoneme
  462. phoneme @# // TEST: [@] which is slightly more 'front'
  463. vowel starttype #i endtype #i
  464. unstressed
  465. length 130
  466. FMT(vowel/@_3)
  467. endphoneme