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

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