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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. phoneme t2 // [t] which doesn't reduce
  2. vcd alv stop
  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
  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
  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. vwl 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, e.g. bett**er**
  97. CALL @
  98. ipa ə
  99. endphoneme
  100. phoneme @2 // Schwa, changes to I before a vowel. th**e**, used only for "the".
  101. vwl starttype #@ endtype #@
  102. unstressed
  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. t**o**, used only for "to".
  110. vwl starttype #@ endtype #@
  111. unstressed
  112. length 140
  113. IF nextPh(isVowel) OR nextPh(isPause) THEN
  114. ChangePhoneme(U)
  115. ENDIF
  116. ChangePhoneme(@)
  117. endphoneme
  118. phoneme @L // simp**le**
  119. vwl 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. vwl 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. vwl
  137. ChangePhoneme(a)
  138. endphoneme
  139. phoneme a# // **a**bout. This may be \[@\] or may be a more open schwa.
  140. vwl 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 // 'b**a**th' etc. This is \[a\] in some accents, \[A:\] in others.
  150. vwl 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 // dr**e**ss
  160. vwl starttype #e endtype #e
  161. length 140
  162. IF nextPhW(n) THEN
  163. ChangeIfDiminished(@)
  164. ELSE
  165. ChangeIfDiminished(I2)
  166. ENDIF
  167. FMT(vowel/ee_5)
  168. endphoneme
  169. phoneme E# // [@] in unstressed syllables, if next vowel is stressed
  170. vwl starttype #e endtype #e
  171. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
  172. ChangePhoneme(@)
  173. ENDIF
  174. ChangePhoneme(E)
  175. endphoneme
  176. phoneme E2 // does not reduce in unstressed syllables
  177. vwl starttype #e endtype #e
  178. length 140
  179. ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
  180. endphoneme
  181. phoneme I // k**i**t
  182. vwl starttype #i endtype #i
  183. length 130
  184. IfNextVowelAppend(;)
  185. FMT(vowel/ii_2)
  186. endphoneme
  187. phoneme I2 // **i**ntend. As \[I\], but also indicates an unstressed syllable.
  188. vwl starttype #i endtype #i
  189. unstressed
  190. length 130
  191. IF MbrolaSynth THEN
  192. ChangePhoneme(I)
  193. ENDIF
  194. IfNextVowelAppend(;)
  195. IF thisPh(isAfterStress) AND thisPh(isFinalVowel) THEN
  196. FMT(vowel/ii#_3)
  197. ENDIF
  198. FMT(vowel/ii_4)
  199. endphoneme
  200. phoneme I# // used for [I] which may be [@] in some accents
  201. vwl starttype #i endtype #i
  202. unstressed
  203. length 130
  204. IF MbrolaSynth THEN
  205. ChangePhoneme(I)
  206. ENDIF
  207. IfNextVowelAppend(;)
  208. ChangePhoneme(I2)
  209. endphoneme
  210. phoneme i // happ**y**. optional variant of [I] for end of words
  211. vwl starttype #i endtype #i
  212. unstressed
  213. ipa i
  214. length 150
  215. IfNextVowelAppend(;)
  216. // IF NOT thisPh(isFinalVowel) THEN
  217. // ChangePhoneme(I)
  218. // ENDIF
  219. FMT(vowel/ii_7)
  220. endphoneme
  221. phoneme 0 // l**o**t
  222. vwl starttype #o endtype #o
  223. length 140
  224. ChangeIfDiminished(@)
  225. FMT(vowel/0)
  226. endphoneme
  227. phoneme 0# // [@] in unstressed syllables
  228. vwl starttype #o endtype #o
  229. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  230. ChangePhoneme(@)
  231. ENDIF
  232. ChangePhoneme(0)
  233. endphoneme
  234. phoneme 02 // becomes V in en-us
  235. vwl starttype #o endtype #o
  236. length 140
  237. ChangePhoneme(0)
  238. endphoneme
  239. phoneme V // str**u**t
  240. vwl starttype #a endtype #@
  241. length 140
  242. ChangeIfDiminished(@)
  243. FMT(vowel/V_2)
  244. endphoneme
  245. phoneme U // f**oo**t
  246. vwl 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: // p**al**m
  255. vwl starttype #a endtype #a
  256. length 230
  257. IfNextVowelAppend(r-)
  258. FMT(vowel/aa_2)
  259. endphoneme
  260. phoneme A@ // st**ar**t. Used for [A:] when followed by 'r'.
  261. vwl 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. vwl starttype #a endtype #a
  269. ChangePhoneme(a)
  270. endphoneme
  271. phoneme 3: // n**ur**se
  272. vwl starttype #@ endtype #@
  273. length 210
  274. IfNextVowelAppend(r-)
  275. ChangeIfDiminished(@)
  276. FMT(vowel/3_en)
  277. endphoneme
  278. phoneme i: // fl**ee**ce
  279. vwl starttype #i endtype #i
  280. length 175
  281. IfNextVowelAppend(;)
  282. IF prevPh(w) THEN
  283. VowelStart(w/wi2)
  284. ENDIF
  285. FMT(vowel/i_en)
  286. endphoneme
  287. phoneme O: // th**ou**ght
  288. vwl starttype #o endtype #o
  289. length 230
  290. ChangeIfDiminished(@)
  291. FMT(vowel/oo_en)
  292. endphoneme
  293. phoneme O
  294. vwl starttype #o endtype #o
  295. length 200
  296. ChangeIfDiminished(@)
  297. FMT(vowel/oo_en)
  298. endphoneme
  299. phoneme O@ // n**or**th
  300. vwl starttype #o endtype #o
  301. ipa ɔː
  302. length 240
  303. IfNextVowelAppend(r-)
  304. FMT(vowel/oo_en)
  305. endphoneme
  306. phoneme o@ // f**or**ce
  307. vwl starttype #o endtype #o
  308. ipa ɔː
  309. length 250
  310. IF MbrolaSynth THEN
  311. ChangePhoneme(O@)
  312. ENDIF
  313. IfNextVowelAppend(r-)
  314. FMT(vowel/oo_en)
  315. endphoneme
  316. phoneme u: // g**oo**se
  317. vwl starttype #u endtype #u
  318. length 210
  319. IF nextPh(l/2) THEN
  320. FMT(vwl_en/u_L)
  321. ENDIF
  322. IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
  323. length 160
  324. ENDIF
  325. FMT(vdiph2/uw_2)
  326. endphoneme
  327. phoneme aU // m**ou**th
  328. vwl starttype #a endtype #u
  329. length 230
  330. FMT(vdiph/au)
  331. endphoneme
  332. phoneme oU // g**oa**t
  333. vwl starttype #@ endtype #u
  334. ipa əʊ
  335. length 220
  336. FMT(vdiph/@u_en)
  337. endphoneme
  338. phoneme oU#
  339. vwl
  340. IF thisPh(isStressed) THEN
  341. ChangePhoneme(0)
  342. ENDIF
  343. IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
  344. ChangePhoneme(@)
  345. ENDIF
  346. ChangePhoneme(oU)
  347. endphoneme
  348. phoneme aI // pr**i**ce
  349. vwl starttype #a endtype #i
  350. length 240
  351. IF nextPh(#a) THEN
  352. AppendPhoneme(;)
  353. ENDIF
  354. FMT(vdiph/ai_2)
  355. endphoneme
  356. phoneme eI // f**a**ce
  357. vwl starttype #e endtype #i
  358. length 210
  359. FMT(vdiph/eei)
  360. endphoneme
  361. phoneme OI // ch**oi**ce
  362. vwl starttype #o endtype #i
  363. length 230
  364. FMT(vdiph/ooi)
  365. endphoneme
  366. phoneme e@ // squ**are**
  367. vwl starttype #e endtype #@
  368. length 230
  369. IfNextVowelAppend(r-)
  370. FMT(vowel/ee_1)
  371. endphoneme
  372. phoneme i@ // n**ear**
  373. vwl starttype #i endtype #@
  374. length 250
  375. IfNextVowelAppend(r-)
  376. FMT(vdiph2/ii@)
  377. endphoneme
  378. phoneme i@3
  379. vwl starttype #i endtype #@
  380. length 250
  381. IF MbrolaSynth THEN
  382. ChangePhoneme(i@)
  383. ENDIF
  384. IfNextVowelAppend(r-)
  385. FMT(vdiph2/ii@)
  386. endphoneme
  387. phoneme U@ // c**ure**
  388. vwl starttype #u endtype #@
  389. length 200
  390. IfNextVowelAppend(r-)
  391. IF thisPh(isUnstressed) THEN
  392. FMT(vdiph2/8@)
  393. ENDIF
  394. FMT(vdiph2/uu@)
  395. endphoneme
  396. phoneme aI@ // sc**ie**nce
  397. vwl starttype #a endtype #@
  398. length 280
  399. IfNextVowelAppend(r-)
  400. FMT(vwl_en/aI@)
  401. endphoneme
  402. phoneme aI3
  403. vwl starttype #a endtype #@
  404. length 280
  405. ChangePhoneme(aI@)
  406. endphoneme
  407. phoneme aU@ // h**our**
  408. vwl starttype #a endtype #@
  409. length 280
  410. IfNextVowelAppend(r-)
  411. FMT(vwl_en/aU@)
  412. endphoneme
  413. phoneme IR // used for "ir" when [3:] is split (Scottish)
  414. vwl starttype #@ endtype #@
  415. length 190
  416. ipa əɹ
  417. IF nextPhW(r-) THEN
  418. ipa ə
  419. ENDIF
  420. IfNextVowelAppend(r-)
  421. FMT(vowelr/V_r)
  422. endphoneme
  423. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  424. vwl starttype #@ endtype #@
  425. length 210
  426. ipa ʌɹ
  427. IF nextPhW(r-) THEN
  428. ipa ʌ
  429. ENDIF
  430. IfNextVowelAppend(r-)
  431. FMT(vowelr/V3_r)
  432. endphoneme
  433. phoneme o:
  434. vwl starttype #o endtype #o
  435. length 220
  436. FMT(vowel/o)
  437. endphoneme
  438. phoneme A~
  439. vwl starttype #a endtype #a
  440. length 260
  441. FMT(vnasal/aa_n2)
  442. endphoneme
  443. phoneme O~
  444. vwl starttype #o endtype #o
  445. length 240
  446. FMT(vnasal/oo_n2)
  447. endphoneme
  448. phoneme e:
  449. vwl starttype #e endtype #e
  450. length 210
  451. FMT(vowel/e)
  452. endphoneme
  453. phoneme a#2 // for word 'an'
  454. vwl
  455. IF next2Ph(isVowel) THEN
  456. ChangePhoneme(a#)
  457. ELSE
  458. ChangePhoneme(a)
  459. ENDIF
  460. endphoneme
  461. phoneme @# // TEST: [@] which is slightly more 'front'
  462. vwl starttype #i endtype #i
  463. unstressed
  464. length 130
  465. FMT(vowel/@_3)
  466. endphoneme