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

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