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

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