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

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