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

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