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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. phoneme t2 // [t] which doesn't reduce
  2. vcd alv stp
  3. ChangePhoneme(t)
  4. endphoneme
  5. phoneme t# // reduced [t] as in "city" in en-us
  6. vcd alv stp
  7. ChangePhoneme(t)
  8. endphoneme
  9. phoneme d# // change to [d] or [t] depending on whether previous phoneme is voiced
  10. vls alv stp
  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 sib
  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 base1/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 sib
  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. phoneme n
  84. vcd alv nas
  85. ipa n
  86. IF nextPh(isVelar) THEN // /n/ is velarized to /N/ when before velar stops
  87. ChangePhoneme(N)
  88. ENDIF
  89. CALL base1/n
  90. endphoneme
  91. //*******************************************************************
  92. // VOWELS
  93. //*******************************************************************
  94. phoneme @
  95. vwl starttype #@ endtype #@
  96. unstressed
  97. length 140
  98. IfNextVowelAppend(r-)
  99. IF thisPh(isWordEnd) THEN
  100. FMT(vowel/@_6, 90)
  101. ENDIF
  102. FMT(vowel/@)
  103. endphoneme
  104. phoneme 3
  105. CALL @
  106. ipa ə
  107. endphoneme
  108. phoneme @2 // Schwa, changes to I before a vowel. th**e**, used only for "the".
  109. vwl 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. t**o**, used only for "to".
  118. vwl 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 // simp**le**
  127. vwl 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. vwl 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 a2 // don't reduce to a#
  144. vwl
  145. ChangePhoneme(a)
  146. endphoneme
  147. phoneme a# // **a**bout. This may be \[@\] or may be a more open schwa.
  148. vwl starttype #@ endtype #@
  149. ipa ɐ
  150. unstressed
  151. length 150
  152. IF NOT thisPh(isUnstressed) THEN
  153. ChangePhoneme(a) // syllable has an explicit stress
  154. ENDIF
  155. FMT(vowel/a#_3)
  156. endphoneme
  157. phoneme aa
  158. vwl starttype #a endtype #a
  159. ipa a
  160. length 200
  161. IF MbrolaSynth THEN
  162. ChangePhoneme(A:)
  163. ENDIF
  164. IfNextVowelAppend(r-)
  165. FMT(vowel/a_6, 88)
  166. endphoneme
  167. phoneme E
  168. vwl starttype #e endtype #e
  169. length 140
  170. IF nextPhW(n) THEN
  171. ChangeIfDiminished(@)
  172. ELSE
  173. ChangeIfDiminished(I2)
  174. ENDIF
  175. FMT(vowel/ee_5)
  176. endphoneme
  177. phoneme E# // [@] in unstressed syllables, if next vowel is stressed
  178. vwl starttype #e endtype #e
  179. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
  180. ChangePhoneme(@)
  181. ENDIF
  182. ChangePhoneme(E)
  183. endphoneme
  184. phoneme E2 // does not reduce in unstressed syllables
  185. vwl starttype #e endtype #e
  186. length 140
  187. ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
  188. endphoneme
  189. phoneme I
  190. vwl starttype #i endtype #i
  191. length 130
  192. IfNextVowelAppend(;)
  193. FMT(vowel/ii_2)
  194. endphoneme
  195. phoneme I2 // **i**ntend. As \[I\], but also indicates an unstressed syllable.
  196. vwl starttype #i endtype #i
  197. unstressed
  198. length 130
  199. IF MbrolaSynth THEN
  200. ChangePhoneme(I)
  201. ENDIF
  202. IfNextVowelAppend(;)
  203. IF thisPh(isAfterStress) AND thisPh(isFinalVowel) THEN
  204. FMT(vowel/ii#_3)
  205. ENDIF
  206. FMT(vowel/ii_4)
  207. endphoneme
  208. phoneme I# // used for [I] which may be [@] in some accents
  209. vwl starttype #@ endtype #@
  210. unstressed
  211. IfNextVowelAppend(;)
  212. ChangePhoneme(@)
  213. endphoneme
  214. phoneme i
  215. vwl starttype #i endtype #i
  216. unstressed
  217. ipa i
  218. length 150
  219. IfNextVowelAppend(;)
  220. // IF NOT thisPh(isFinalVowel) THEN
  221. // ChangePhoneme(I)
  222. // ENDIF
  223. FMT(vowel/ii_7)
  224. endphoneme
  225. phoneme 0
  226. vwl starttype #o endtype #o
  227. length 140
  228. ChangeIfDiminished(@)
  229. FMT(vowel/0)
  230. endphoneme
  231. phoneme 0# // [@] in unstressed syllables
  232. vwl starttype #o endtype #o
  233. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  234. ChangePhoneme(@)
  235. ENDIF
  236. ChangePhoneme(0)
  237. endphoneme
  238. phoneme 02 // becomes V in en-us
  239. vwl starttype #o endtype #o
  240. length 140
  241. ChangePhoneme(0)
  242. endphoneme
  243. phoneme O2
  244. vwl starttype #o endtype #o
  245. length 140
  246. ChangePhoneme(0)
  247. endphoneme
  248. phoneme V
  249. vwl starttype #a endtype #@
  250. length 140
  251. ChangeIfDiminished(@)
  252. FMT(vowel/V_2)
  253. endphoneme
  254. phoneme U
  255. vwl starttype #o endtype #o
  256. length 150
  257. IF prevPhW(j) THEN
  258. length 130
  259. FMT(vowel/8_2)
  260. ENDIF
  261. FMT(vowel/uu)
  262. endphoneme
  263. phoneme A:
  264. vwl starttype #a endtype #a
  265. length 230
  266. IfNextVowelAppend(r-)
  267. FMT(vowel/aa_2)
  268. endphoneme
  269. phoneme A@
  270. vwl starttype #a endtype #a
  271. ipa ɑː
  272. length 230
  273. IfNextVowelAppend(r-)
  274. FMT(vowel/aa_2)
  275. endphoneme
  276. phoneme A# // [a] in British [A:] in American
  277. vwl starttype #a endtype #a
  278. ChangePhoneme(a)
  279. endphoneme
  280. phoneme 3:
  281. vwl starttype #@ endtype #@
  282. length 210
  283. IfNextVowelAppend(r-)
  284. ChangeIfDiminished(@)
  285. FMT(vowel/3_en)
  286. endphoneme
  287. phoneme i:
  288. vwl starttype #i endtype #i
  289. length 175
  290. IfNextVowelAppend(;)
  291. IF prevPh(w) THEN
  292. VowelStart(w/wi2)
  293. ENDIF
  294. FMT(vowel/i_en)
  295. endphoneme
  296. phoneme O:
  297. vwl starttype #o endtype #o
  298. length 230
  299. ChangeIfDiminished(@)
  300. FMT(vowel/oo_en)
  301. endphoneme
  302. phoneme O
  303. vwl starttype #o endtype #o
  304. length 200
  305. ChangeIfDiminished(@)
  306. FMT(vowel/oo_en)
  307. endphoneme
  308. phoneme O@
  309. vwl starttype #o endtype #o
  310. ipa ɔː
  311. length 240
  312. IfNextVowelAppend(r-)
  313. FMT(vowel/oo_en)
  314. endphoneme
  315. phoneme o@
  316. vwl starttype #o endtype #o
  317. ipa ɔː
  318. length 250
  319. IF MbrolaSynth THEN
  320. ChangePhoneme(O@)
  321. ENDIF
  322. IfNextVowelAppend(r-)
  323. FMT(vowel/oo_en)
  324. endphoneme
  325. phoneme u:
  326. vwl starttype #u endtype #u
  327. length 210
  328. IF nextPh(l/2) THEN
  329. FMT(vwl_en/u_L)
  330. ENDIF
  331. IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
  332. length 160
  333. ENDIF
  334. FMT(vdiph2/uw_2)
  335. endphoneme
  336. phoneme aU
  337. vwl starttype #a endtype #u
  338. length 230
  339. FMT(vdiph/au)
  340. endphoneme
  341. phoneme oU
  342. vwl starttype #@ endtype #u
  343. ipa əʊ
  344. length 220
  345. FMT(vdiph/@u_en)
  346. endphoneme
  347. phoneme oU#
  348. vwl
  349. IF thisPh(isStressed) THEN
  350. ChangePhoneme(0)
  351. ENDIF
  352. IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
  353. ChangePhoneme(@)
  354. ENDIF
  355. ChangePhoneme(oU)
  356. endphoneme
  357. phoneme aI
  358. vwl starttype #a endtype #i
  359. length 240
  360. IF nextPh(#a) THEN
  361. AppendPhoneme(;)
  362. ENDIF
  363. FMT(vdiph/ai_2)
  364. endphoneme
  365. phoneme eI
  366. vwl starttype #e endtype #i
  367. length 210
  368. FMT(vdiph/eei)
  369. endphoneme
  370. phoneme OI
  371. vwl starttype #o endtype #i
  372. length 230
  373. FMT(vdiph/ooi)
  374. endphoneme
  375. phoneme e@
  376. vwl starttype #e endtype #@
  377. length 230
  378. IfNextVowelAppend(r-)
  379. FMT(vowel/ee_1)
  380. endphoneme
  381. phoneme i@
  382. vwl starttype #i endtype #@
  383. length 250
  384. IfNextVowelAppend(r-)
  385. FMT(vdiph2/ii@)
  386. endphoneme
  387. phoneme i@3
  388. vwl starttype #i endtype #@
  389. length 250
  390. IF MbrolaSynth THEN
  391. ChangePhoneme(i@)
  392. ENDIF
  393. IfNextVowelAppend(r-)
  394. FMT(vdiph2/ii@)
  395. endphoneme
  396. phoneme U@
  397. vwl starttype #u endtype #@
  398. length 200
  399. IfNextVowelAppend(r-)
  400. IF thisPh(isUnstressed) THEN
  401. FMT(vdiph2/8@)
  402. ENDIF
  403. FMT(vdiph2/uu@)
  404. endphoneme
  405. phoneme aI@ // sc**ie**nce
  406. vwl starttype #a endtype #@
  407. length 280
  408. IfNextVowelAppend(r-)
  409. FMT(vwl_en/aI@)
  410. endphoneme
  411. phoneme aI3
  412. vwl starttype #a endtype #@
  413. length 280
  414. ChangePhoneme(aI@)
  415. endphoneme
  416. phoneme aU@ // h**our**
  417. vwl starttype #a endtype #@
  418. length 280
  419. IfNextVowelAppend(r-)
  420. FMT(vwl_en/aU@)
  421. endphoneme
  422. phoneme IR // used for "ir" when [3:] is split (Scottish)
  423. vwl starttype #@ endtype #@
  424. length 190
  425. ipa əɹ
  426. IF nextPhW(r-) THEN
  427. ipa ə
  428. ENDIF
  429. IfNextVowelAppend(r-)
  430. FMT(vowelr/V_r)
  431. endphoneme
  432. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  433. vwl starttype #@ endtype #@
  434. length 210
  435. ipa ʌɹ
  436. IF nextPhW(r-) THEN
  437. ipa ʌ
  438. ENDIF
  439. IfNextVowelAppend(r-)
  440. FMT(vowelr/V3_r)
  441. endphoneme
  442. phoneme o:
  443. vwl starttype #o endtype #o
  444. length 220
  445. FMT(vowel/o)
  446. endphoneme
  447. phoneme A~
  448. vwl starttype #a endtype #a
  449. length 260
  450. FMT(vnasal/aa_n2)
  451. endphoneme
  452. phoneme O~
  453. vwl starttype #o endtype #o
  454. length 240
  455. FMT(vnasal/oo_n2)
  456. endphoneme
  457. phoneme e:
  458. vwl starttype #e endtype #e
  459. length 210
  460. FMT(vowel/e)
  461. endphoneme
  462. phoneme e# // **E**XPLORE
  463. vwl
  464. ChangePhoneme(E)
  465. endphoneme
  466. phoneme a#2 // for word 'an'
  467. vwl
  468. IF next2Ph(isVowel) THEN
  469. ChangePhoneme(a#)
  470. ELSE
  471. ChangePhoneme(a)
  472. ENDIF
  473. endphoneme
  474. phoneme @# // TEST: [@] which is slightly more 'front'
  475. vwl starttype #i endtype #i
  476. unstressed
  477. length 130
  478. FMT(vowel/@_3)
  479. endphoneme