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

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