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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  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 #i endtype #i
  210. unstressed
  211. length 130
  212. IF MbrolaSynth THEN
  213. ChangePhoneme(I)
  214. ENDIF
  215. IfNextVowelAppend(;)
  216. ChangePhoneme(I2)
  217. endphoneme
  218. phoneme i
  219. vwl starttype #i endtype #i
  220. unstressed
  221. ipa i
  222. length 150
  223. IfNextVowelAppend(;)
  224. // IF NOT thisPh(isFinalVowel) THEN
  225. // ChangePhoneme(I)
  226. // ENDIF
  227. FMT(vowel/ii_7)
  228. endphoneme
  229. phoneme 0
  230. vwl starttype #o endtype #o
  231. length 140
  232. ChangeIfDiminished(@)
  233. FMT(vowel/0)
  234. endphoneme
  235. phoneme 0# // [@] in unstressed syllables
  236. vwl starttype #o endtype #o
  237. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  238. ChangePhoneme(@)
  239. ENDIF
  240. ChangePhoneme(0)
  241. endphoneme
  242. phoneme 02 // becomes V in en-us
  243. vwl starttype #o endtype #o
  244. length 140
  245. ChangePhoneme(0)
  246. endphoneme
  247. phoneme O2
  248. vwl starttype #o endtype #o
  249. length 140
  250. ChangePhoneme(0)
  251. endphoneme
  252. phoneme V
  253. vwl starttype #a endtype #@
  254. length 140
  255. ChangeIfDiminished(@)
  256. FMT(vowel/V_2)
  257. endphoneme
  258. phoneme U
  259. vwl starttype #o endtype #o
  260. length 150
  261. IF prevPhW(j) THEN
  262. length 130
  263. FMT(vowel/8_2)
  264. ENDIF
  265. FMT(vowel/uu)
  266. endphoneme
  267. phoneme A:
  268. vwl starttype #a endtype #a
  269. length 230
  270. IfNextVowelAppend(r-)
  271. FMT(vowel/aa_2)
  272. endphoneme
  273. phoneme A@
  274. vwl starttype #a endtype #a
  275. ipa ɑː
  276. length 230
  277. IfNextVowelAppend(r-)
  278. FMT(vowel/aa_2)
  279. endphoneme
  280. phoneme A# // [a] in British [A:] in American
  281. vwl starttype #a endtype #a
  282. ChangePhoneme(a)
  283. endphoneme
  284. phoneme 3:
  285. vwl starttype #@ endtype #@
  286. length 210
  287. IfNextVowelAppend(r-)
  288. ChangeIfDiminished(@)
  289. FMT(vowel/3_en)
  290. endphoneme
  291. phoneme i:
  292. vwl starttype #i endtype #i
  293. length 175
  294. IfNextVowelAppend(;)
  295. IF prevPh(w) THEN
  296. VowelStart(w/wi2)
  297. ENDIF
  298. FMT(vowel/i_en)
  299. endphoneme
  300. phoneme O:
  301. vwl starttype #o endtype #o
  302. length 230
  303. ChangeIfDiminished(@)
  304. FMT(vowel/oo_en)
  305. endphoneme
  306. phoneme O
  307. vwl starttype #o endtype #o
  308. length 200
  309. ChangeIfDiminished(@)
  310. FMT(vowel/oo_en)
  311. endphoneme
  312. phoneme O@
  313. vwl starttype #o endtype #o
  314. ipa ɔː
  315. length 240
  316. IfNextVowelAppend(r-)
  317. FMT(vowel/oo_en)
  318. endphoneme
  319. phoneme o@
  320. vwl starttype #o endtype #o
  321. ipa ɔː
  322. length 250
  323. IF MbrolaSynth THEN
  324. ChangePhoneme(O@)
  325. ENDIF
  326. IfNextVowelAppend(r-)
  327. FMT(vowel/oo_en)
  328. endphoneme
  329. phoneme u:
  330. vwl starttype #u endtype #u
  331. length 210
  332. IF nextPh(l/2) THEN
  333. FMT(vwl_en/u_L)
  334. ENDIF
  335. IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
  336. length 160
  337. ENDIF
  338. FMT(vdiph2/uw_2)
  339. endphoneme
  340. phoneme aU
  341. vwl starttype #a endtype #u
  342. length 230
  343. FMT(vdiph/au)
  344. endphoneme
  345. phoneme oU
  346. vwl starttype #@ endtype #u
  347. ipa əʊ
  348. length 220
  349. FMT(vdiph/@u_en)
  350. endphoneme
  351. phoneme oU#
  352. vwl
  353. IF thisPh(isStressed) THEN
  354. ChangePhoneme(0)
  355. ENDIF
  356. IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
  357. ChangePhoneme(@)
  358. ENDIF
  359. ChangePhoneme(oU)
  360. endphoneme
  361. phoneme aI
  362. vwl starttype #a endtype #i
  363. length 240
  364. IF nextPh(#a) THEN
  365. AppendPhoneme(;)
  366. ENDIF
  367. FMT(vdiph/ai_2)
  368. endphoneme
  369. phoneme eI
  370. vwl starttype #e endtype #i
  371. length 210
  372. FMT(vdiph/eei)
  373. endphoneme
  374. phoneme OI
  375. vwl starttype #o endtype #i
  376. length 230
  377. FMT(vdiph/ooi)
  378. endphoneme
  379. phoneme e@
  380. vwl starttype #e endtype #@
  381. length 230
  382. IfNextVowelAppend(r-)
  383. FMT(vowel/ee_1)
  384. endphoneme
  385. phoneme i@
  386. vwl starttype #i endtype #@
  387. length 250
  388. IfNextVowelAppend(r-)
  389. FMT(vdiph2/ii@)
  390. endphoneme
  391. phoneme i@3
  392. vwl starttype #i endtype #@
  393. length 250
  394. IF MbrolaSynth THEN
  395. ChangePhoneme(i@)
  396. ENDIF
  397. IfNextVowelAppend(r-)
  398. FMT(vdiph2/ii@)
  399. endphoneme
  400. phoneme U@
  401. vwl starttype #u endtype #@
  402. length 200
  403. IfNextVowelAppend(r-)
  404. IF thisPh(isUnstressed) THEN
  405. FMT(vdiph2/8@)
  406. ENDIF
  407. FMT(vdiph2/uu@)
  408. endphoneme
  409. phoneme aI@ // sc**ie**nce
  410. vwl starttype #a endtype #@
  411. length 280
  412. IfNextVowelAppend(r-)
  413. FMT(vwl_en/aI@)
  414. endphoneme
  415. phoneme aI3
  416. vwl starttype #a endtype #@
  417. length 280
  418. ChangePhoneme(aI@)
  419. endphoneme
  420. phoneme aU@ // h**our**
  421. vwl starttype #a endtype #@
  422. length 280
  423. IfNextVowelAppend(r-)
  424. FMT(vwl_en/aU@)
  425. endphoneme
  426. phoneme IR // used for "ir" when [3:] is split (Scottish)
  427. vwl starttype #@ endtype #@
  428. length 190
  429. ipa əɹ
  430. IF nextPhW(r-) THEN
  431. ipa ə
  432. ENDIF
  433. IfNextVowelAppend(r-)
  434. FMT(vowelr/V_r)
  435. endphoneme
  436. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  437. vwl starttype #@ endtype #@
  438. length 210
  439. ipa ʌɹ
  440. IF nextPhW(r-) THEN
  441. ipa ʌ
  442. ENDIF
  443. IfNextVowelAppend(r-)
  444. FMT(vowelr/V3_r)
  445. endphoneme
  446. phoneme o:
  447. vwl starttype #o endtype #o
  448. length 220
  449. FMT(vowel/o)
  450. endphoneme
  451. phoneme A~
  452. vwl starttype #a endtype #a
  453. length 260
  454. FMT(vnasal/aa_n2)
  455. endphoneme
  456. phoneme O~
  457. vwl starttype #o endtype #o
  458. length 240
  459. FMT(vnasal/oo_n2)
  460. endphoneme
  461. phoneme e:
  462. vwl starttype #e endtype #e
  463. length 210
  464. FMT(vowel/e)
  465. endphoneme
  466. phoneme e# // **E**XPLORE
  467. vwl
  468. ChangePhoneme(E)
  469. endphoneme
  470. phoneme a#2 // for word 'an'
  471. vwl
  472. IF next2Ph(isVowel) THEN
  473. ChangePhoneme(a#)
  474. ELSE
  475. ChangePhoneme(a)
  476. ENDIF
  477. endphoneme
  478. phoneme @# // TEST: [@] which is slightly more 'front'
  479. vwl starttype #i endtype #i
  480. unstressed
  481. length 130
  482. FMT(vowel/@_3)
  483. endphoneme