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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  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 @ // Schwa
  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 // Schwa, used for rhotic schwa in American, e.g. bett**er**
  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 // 'b**a**th' etc. This is \[a\] in some accents, \[A:\] in others.
  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 // dr**e**ss
  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 // k**i**t
  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 // happ**y**. optional variant of [I] for end of words
  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 // l**o**t
  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 V // str**u**t
  228. vwl starttype #a endtype #@
  229. length 140
  230. ChangeIfDiminished(@)
  231. FMT(vowel/V_2)
  232. endphoneme
  233. phoneme U // f**oo**t
  234. vwl starttype #o endtype #o
  235. length 150
  236. IF prevPhW(j) THEN
  237. length 130
  238. FMT(vowel/8_2)
  239. ENDIF
  240. FMT(vowel/uu)
  241. endphoneme
  242. phoneme A: // p**al**m
  243. vwl starttype #a endtype #a
  244. length 230
  245. IfNextVowelAppend(r-)
  246. FMT(vowel/aa_2)
  247. endphoneme
  248. phoneme A@ // st**ar**t. Used for [A:] when followed by 'r'.
  249. vwl starttype #a endtype #a
  250. ipa ɑː
  251. length 230
  252. IfNextVowelAppend(r-)
  253. FMT(vowel/aa_2)
  254. endphoneme
  255. phoneme A# // [a] in British [A:] in American
  256. vwl starttype #a endtype #a
  257. ChangePhoneme(a)
  258. endphoneme
  259. phoneme 3: // n**ur**se
  260. vwl starttype #@ endtype #@
  261. length 210
  262. IfNextVowelAppend(r-)
  263. ChangeIfDiminished(@)
  264. FMT(vowel/3_en)
  265. endphoneme
  266. phoneme i: // fl**ee**ce
  267. vwl starttype #i endtype #i
  268. length 175
  269. IfNextVowelAppend(;)
  270. IF prevPh(w) THEN
  271. VowelStart(w/wi2)
  272. ENDIF
  273. FMT(vowel/i_en)
  274. endphoneme
  275. phoneme O: // th**ou**ght
  276. vwl starttype #o endtype #o
  277. length 230
  278. ChangeIfDiminished(@)
  279. FMT(vowel/oo_en)
  280. endphoneme
  281. phoneme O
  282. vwl starttype #o endtype #o
  283. length 200
  284. ChangeIfDiminished(@)
  285. FMT(vowel/oo_en)
  286. endphoneme
  287. phoneme O@ // n**or**th
  288. vwl starttype #o endtype #o
  289. ipa ɔː
  290. length 240
  291. IfNextVowelAppend(r-)
  292. FMT(vowel/oo_en)
  293. endphoneme
  294. phoneme o@ // f**or**ce
  295. vwl starttype #o endtype #o
  296. ipa ɔː
  297. length 250
  298. IF MbrolaSynth THEN
  299. ChangePhoneme(O@)
  300. ENDIF
  301. IfNextVowelAppend(r-)
  302. FMT(vowel/oo_en)
  303. endphoneme
  304. phoneme u: // g**oo**se
  305. vwl starttype #u endtype #u
  306. length 210
  307. IF nextPh(l/2) THEN
  308. FMT(vwl_en/u_L)
  309. ENDIF
  310. IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
  311. length 160
  312. ENDIF
  313. FMT(vdiph2/uw_2)
  314. endphoneme
  315. phoneme aU // m**ou**th
  316. vwl starttype #a endtype #u
  317. length 230
  318. FMT(vdiph/au)
  319. endphoneme
  320. phoneme oU // g**oa**t
  321. vwl starttype #@ endtype #u
  322. ipa əʊ
  323. length 220
  324. FMT(vdiph/@u_en)
  325. endphoneme
  326. phoneme oU#
  327. vwl
  328. IF thisPh(isStressed) THEN
  329. ChangePhoneme(0)
  330. ENDIF
  331. IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
  332. ChangePhoneme(@)
  333. ENDIF
  334. ChangePhoneme(oU)
  335. endphoneme
  336. phoneme aI // pr**i**ce
  337. vwl starttype #a endtype #i
  338. length 240
  339. IF nextPh(#a) THEN
  340. AppendPhoneme(;)
  341. ENDIF
  342. FMT(vdiph/ai_2)
  343. endphoneme
  344. phoneme eI // f**a**ce
  345. vwl starttype #e endtype #i
  346. length 210
  347. FMT(vdiph/eei)
  348. endphoneme
  349. phoneme OI // ch**oi**ce
  350. vwl starttype #o endtype #i
  351. length 230
  352. FMT(vdiph/ooi)
  353. endphoneme
  354. phoneme e@ // squ**are**
  355. vwl starttype #e endtype #@
  356. length 230
  357. IfNextVowelAppend(r-)
  358. FMT(vowel/ee_1)
  359. endphoneme
  360. phoneme i@ // n**ear**
  361. vwl starttype #i endtype #@
  362. length 250
  363. IfNextVowelAppend(r-)
  364. FMT(vdiph2/ii@)
  365. endphoneme
  366. phoneme i@3
  367. vwl starttype #i endtype #@
  368. length 250
  369. IF MbrolaSynth THEN
  370. ChangePhoneme(i@)
  371. ENDIF
  372. IfNextVowelAppend(r-)
  373. FMT(vdiph2/ii@)
  374. endphoneme
  375. phoneme U@ // c**ure**
  376. vwl starttype #u endtype #@
  377. length 200
  378. IfNextVowelAppend(r-)
  379. IF thisPh(isUnstressed) THEN
  380. FMT(vdiph2/8@)
  381. ENDIF
  382. FMT(vdiph2/uu@)
  383. endphoneme
  384. phoneme aI@ // sc**ie**nce
  385. vwl starttype #a endtype #@
  386. length 280
  387. IfNextVowelAppend(r-)
  388. FMT(vwl_en/aI@)
  389. endphoneme
  390. phoneme aI3
  391. vwl starttype #a endtype #@
  392. length 280
  393. ChangePhoneme(aI@)
  394. endphoneme
  395. phoneme aU@ // h**our**
  396. vwl starttype #a endtype #@
  397. length 280
  398. IfNextVowelAppend(r-)
  399. FMT(vwl_en/aU@)
  400. endphoneme
  401. phoneme IR // used for "ir" when [3:] is split (Scottish)
  402. vwl starttype #@ endtype #@
  403. length 190
  404. ipa əɹ
  405. IF nextPhW(r-) THEN
  406. ipa ə
  407. ENDIF
  408. IfNextVowelAppend(r-)
  409. FMT(vowelr/V_r)
  410. endphoneme
  411. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  412. vwl starttype #@ endtype #@
  413. length 210
  414. ipa ʌɹ
  415. IF nextPhW(r-) THEN
  416. ipa ʌ
  417. ENDIF
  418. IfNextVowelAppend(r-)
  419. FMT(vowelr/V3_r)
  420. endphoneme
  421. phoneme o:
  422. vwl starttype #o endtype #o
  423. length 220
  424. FMT(vowel/o)
  425. endphoneme
  426. phoneme A~
  427. vwl starttype #a endtype #a
  428. length 260
  429. FMT(vnasal/aa_n2)
  430. endphoneme
  431. phoneme O~
  432. vwl starttype #o endtype #o
  433. length 240
  434. FMT(vnasal/oo_n2)
  435. endphoneme
  436. phoneme e:
  437. vwl starttype #e endtype #e
  438. length 210
  439. FMT(vowel/e)
  440. endphoneme
  441. phoneme a#2 // for word 'an'
  442. vwl
  443. IF next2Ph(isVowel) THEN
  444. ChangePhoneme(a#)
  445. ELSE
  446. ChangePhoneme(a)
  447. ENDIF
  448. endphoneme
  449. phoneme @# // TEST: [@] which is slightly more 'front'
  450. vwl starttype #i endtype #i
  451. unstressed
  452. length 130
  453. FMT(vowel/@_3)
  454. endphoneme