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) AND NOT prevPh(@) AND NOT prevPh(3) THEN
  41. ChangePhoneme(r)
  42. ENDIF
  43. lengthmod 0
  44. NextVowelStarts
  45. VowelStart(r2/r2@)
  46. VowelStart(r2/r2a)
  47. VowelStart(r2/r2e)
  48. VowelStart(r2/r2i)
  49. VowelStart(r2/r2o)
  50. VowelStart(r2/r2u)
  51. EndSwitch
  52. IF prevPh(isVowel) THEN
  53. VowelEnding(r/xr, -60)
  54. ENDIF
  55. FMT(r/r)
  56. endphoneme
  57. phoneme z/2 // used for 's suffix
  58. vcd alv frc sibilant
  59. lengthmod 6
  60. IF prevPh(isSibilant) THEN
  61. InsertPhoneme(I2)
  62. ENDIF
  63. IF NOT prevPh(isVoiced) THEN
  64. ChangePhoneme(s)
  65. ENDIF
  66. ChangePhoneme(z)
  67. endphoneme
  68. phoneme w#
  69. vls glt apr // [h]
  70. ipa ʍ
  71. IF nextPh(isVowel) THEN
  72. NextVowelStarts
  73. VowelStart(w/w@)
  74. VowelStart(w/wa)
  75. VowelStart(w/we)
  76. VowelStart(w/wi)
  77. VowelStart(w/wo)
  78. VowelStart(w/wu)
  79. EndSwitch
  80. ENDIF
  81. WAV(h/hu, 70)
  82. endphoneme
  83. //*******************************************************************
  84. // VOWELS
  85. //*******************************************************************
  86. phoneme @ // Schwa
  87. vowel starttype #@ endtype #@
  88. unstressed
  89. length 140
  90. IfNextVowelAppend(r-)
  91. IF thisPh(isWordEnd) THEN
  92. FMT(vowel/@_6, 90)
  93. ENDIF
  94. FMT(vowel/@)
  95. endphoneme
  96. phoneme 3 // Schwa, used for rhotic schwa in American
  97. CALL @
  98. ipa ə
  99. endphoneme
  100. phoneme @2 // Schwa, changes to I before a vowel
  101. vowel starttype #@ endtype #@
  102. unstressed dontlist
  103. length 120
  104. IF nextPh(isVowel) THEN
  105. ChangePhoneme(I2)
  106. ENDIF
  107. ChangePhoneme(@)
  108. endphoneme
  109. phoneme @5 // Schwa, changes to U before a vowel
  110. vowel starttype #@ endtype #@
  111. unstressed dontlist
  112. length 140
  113. IF nextPh(isVowel) OR nextPh(isPause) THEN
  114. ChangePhoneme(U)
  115. ENDIF
  116. ChangePhoneme(@)
  117. endphoneme
  118. phoneme @L
  119. vowel starttype #@ endtype l
  120. ipa ə|l
  121. unstressed
  122. length 160
  123. CALL vowelstart_l
  124. FMT(vwl_en/@L)
  125. endphoneme
  126. phoneme a
  127. vowel starttype #a endtype #a
  128. length 160
  129. ChangeIfDiminished(a#)
  130. IF thisPh(isUnstressed) THEN
  131. FMT(vowel/a_8)
  132. ENDIF
  133. FMT(vowel/a)
  134. endphoneme
  135. phoneme a2 // don't reduce to a#
  136. vowel dontlist
  137. ChangePhoneme(a)
  138. endphoneme
  139. phoneme a#
  140. vowel starttype #@ endtype #@
  141. ipa ɐ
  142. unstressed
  143. length 150
  144. IF NOT thisPh(isUnstressed) THEN
  145. ChangePhoneme(a) // syllable has an explicit stress
  146. ENDIF
  147. FMT(vowel/a#_3)
  148. endphoneme
  149. phoneme aa // 'bath' etc.
  150. vowel starttype #a endtype #a
  151. ipa a
  152. length 200
  153. IF MbrolaSynth THEN
  154. ChangePhoneme(A:)
  155. ENDIF
  156. IfNextVowelAppend(r-)
  157. FMT(vowel/a_6, 88)
  158. endphoneme
  159. phoneme E
  160. vowel starttype #e endtype #e
  161. length 140
  162. ChangeIfDiminished(I2)
  163. FMT(vowel/ee_5)
  164. endphoneme
  165. phoneme E# // [@] in unstressed syllables, if next vowel is stressed
  166. vowel starttype #e endtype #e
  167. dontlist
  168. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
  169. ChangePhoneme(@)
  170. ENDIF
  171. ChangePhoneme(E)
  172. endphoneme
  173. phoneme E2 // does not reduce in unstressed syllables
  174. vowel starttype #e endtype #e
  175. dontlist
  176. length 140
  177. ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
  178. endphoneme
  179. phoneme I
  180. vowel starttype #i endtype #i
  181. length 130
  182. IfNextVowelAppend(;)
  183. FMT(vowel/ii_2)
  184. endphoneme
  185. phoneme I2
  186. vowel starttype #i endtype #i
  187. unstressed
  188. length 130
  189. IF MbrolaSynth THEN
  190. ChangePhoneme(I)
  191. ENDIF
  192. IfNextVowelAppend(;)
  193. IF thisPh(isAfterStress) AND thisPh(isFinalVowel) THEN
  194. FMT(vowel/ii#_3)
  195. ENDIF
  196. FMT(vowel/ii_4)
  197. endphoneme
  198. phoneme I# // used for [I] which may be [@] in some accents
  199. vowel starttype #i endtype #i
  200. unstressed
  201. length 130
  202. IF MbrolaSynth THEN
  203. ChangePhoneme(I)
  204. ENDIF
  205. IfNextVowelAppend(;)
  206. ChangePhoneme(I2)
  207. endphoneme
  208. phoneme i // optional variant of [I] for end of words
  209. vowel starttype #i endtype #i
  210. unstressed
  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