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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. phoneme t2 // [t] which doesn't reduce
  2. vcd alv stop
  3. ChangePhoneme(t)
  4. endphoneme
  5. phoneme t# // reduced [t] as in "city"
  6. vcd alv stop
  7. ipa ɾ
  8. lengthmod 5
  9. Vowelin f1=1 f2=1700 -300 300 f3=-100 80
  10. Vowelout f1=2 f2=1700 -300 300 f3=-100 80
  11. IF KlattSynth THEN
  12. IF PreVoicing THEN
  13. FMT(klatt/x_tap)
  14. ENDIF
  15. FMT(klatt/tap2) addWav(x/d, 70)
  16. ENDIF
  17. IF PreVoicing THEN
  18. FMT(d/x_tap)
  19. ENDIF
  20. FMT(d/tap2) addWav(x/d, 50)
  21. endphoneme
  22. phoneme d# // change to [d] or [t] depending on whether previous phoneme is voiced
  23. vls alv stop
  24. IF prevPh(isVoiced) THEN
  25. ChangePhoneme(d)
  26. ELSE
  27. ChangePhoneme(t)
  28. ENDIF
  29. endphoneme
  30. phoneme z# // change to [z] or [s] depending on whether previous phoneme is voiced
  31. vls alv frc sibilant
  32. IF prevPh(isVoiced) THEN
  33. ChangePhoneme(z)
  34. ELSE
  35. ChangePhoneme(s)
  36. ENDIF
  37. endphoneme
  38. phoneme l // use dark [l/2] before not-vowel
  39. liquid
  40. lengthmod 7
  41. IF NOT nextPhW(isVowel) THEN
  42. IF prevPh(isVowel) OR prevPh(j) OR prevPh(w) THEN
  43. ChangePhoneme(l/2)
  44. ELSE
  45. ChangePhoneme(l/)
  46. ENDIF
  47. ENDIF
  48. CALL base/l
  49. endphoneme
  50. phoneme g-
  51. vcd vel stop
  52. lengthmod 5
  53. Vowelin f1=2 f2=2300 200 300 f3=-300 80
  54. Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
  55. IF PreVoicing THEN
  56. FMT(g/xg)
  57. ENDIF
  58. IF nextPh(isPause2) THEN
  59. FMT(g/g_) addWav(x/g2_)
  60. ENDIF
  61. FMT(g/g) addWav(x/g2_)
  62. endphoneme
  63. phoneme r- // linking r, used in English between certain vowels and a following vowel
  64. liquid rhotic
  65. ipa ɹ
  66. lengthmod 0
  67. NextVowelStarts
  68. VowelStart(r2/r2@)
  69. VowelStart(r2/r2a)
  70. VowelStart(r2/r2e)
  71. VowelStart(r2/r2i)
  72. VowelStart(r2/r2o)
  73. VowelStart(r2/r2u)
  74. EndSwitch
  75. IF prevPh(isVowel) THEN
  76. VowelEnding(r/xr, -60)
  77. ENDIF
  78. FMT(r/r)
  79. endphoneme
  80. phoneme z/2 // used for 's suffix
  81. vcd alv frc sibilant
  82. lengthmod 6
  83. IF prevPh(isSibilant) THEN
  84. InsertPhoneme(I2)
  85. ENDIF
  86. IF NOT prevPh(isVoiced) THEN
  87. ChangePhoneme(s)
  88. ENDIF
  89. ChangePhoneme(z)
  90. endphoneme
  91. //*******************************************************************
  92. // VOWELS
  93. //*******************************************************************
  94. phoneme @ // Schwa
  95. vowel starttype #@ endtype #@
  96. unstressed
  97. length 140
  98. IfNextVowelAppend(r-)
  99. IF thisPh(isWordEnd) THEN
  100. FMT(vowel/@_6)
  101. ENDIF
  102. FMT(vowel/@)
  103. endphoneme
  104. phoneme 3 // Schwa, used for rhotic schwa in American
  105. CALL @
  106. ipa ə
  107. endphoneme
  108. phoneme @2 // Schwa, changes to I before a vowel
  109. vowel starttype #@ endtype #@
  110. unstressed
  111. length 120
  112. IF nextPh(isVowel) THEN
  113. ChangePhoneme(I2)
  114. ENDIF
  115. ChangePhoneme(@)
  116. endphoneme
  117. phoneme @5 // Schwa, changes to U before a vowel
  118. vowel starttype #@ endtype #@
  119. unstressed
  120. length 140
  121. IF nextPh(isVowel) OR nextPh(isPause) THEN
  122. ChangePhoneme(U)
  123. ENDIF
  124. ChangePhoneme(@)
  125. endphoneme
  126. phoneme @L
  127. vowel starttype #@ endtype l
  128. ipa ə|l
  129. unstressed
  130. length 160
  131. CALL vowelstart_l
  132. FMT(vwl_en/@L)
  133. endphoneme
  134. phoneme a
  135. vowel starttype #a endtype #a
  136. length 160
  137. ChangeIfDiminished(a#)
  138. IF thisPh(isUnstressed) THEN
  139. FMT(vowel/a_8)
  140. ENDIF
  141. FMT(vowel/a)
  142. endphoneme
  143. phoneme a#
  144. vowel starttype #@ endtype #@
  145. ipa ɐ
  146. unstressed
  147. length 150
  148. FMT(vowel/a#_3)
  149. endphoneme
  150. phoneme aa // 'bath' etc.
  151. vowel starttype #a endtype #a
  152. ipa a
  153. length 185
  154. IF MbrolaSynth THEN
  155. ChangePhoneme(A:)
  156. ENDIF
  157. IfNextVowelAppend(r-)
  158. FMT(vowel/a)
  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. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
  169. ChangePhoneme(@)
  170. ENDIF
  171. ChangePhoneme(E)
  172. endphoneme
  173. phoneme E2 // does not reduce in unstressed syllables
  174. vowel starttype #e endtype #e
  175. length 140
  176. ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
  177. endphoneme
  178. phoneme I
  179. vowel starttype #i endtype #i
  180. length 130
  181. IfNextVowelAppend(;)
  182. FMT(vowel/ii_2)
  183. endphoneme
  184. phoneme I2
  185. vowel starttype #i endtype #i
  186. unstressed
  187. length 130
  188. IF MbrolaSynth THEN
  189. ChangePhoneme(I)
  190. ENDIF
  191. IfNextVowelAppend(;)
  192. FMT(vowel/ii_4)
  193. endphoneme
  194. phoneme I# // used for [I] which may be [@] in some accents
  195. vowel starttype #i endtype #i
  196. unstressed
  197. length 130
  198. IF MbrolaSynth THEN
  199. ChangePhoneme(I)
  200. ENDIF
  201. IfNextVowelAppend(;)
  202. ChangePhoneme(I2)
  203. endphoneme
  204. phoneme i // optional variant of [I] for end of words
  205. vowel starttype #i endtype #i
  206. ipa i
  207. length 140
  208. IfNextVowelAppend(;)
  209. FMT(vowel/ii_7)
  210. endphoneme
  211. phoneme 0
  212. vowel starttype #o endtype #o
  213. length 140
  214. ChangeIfDiminished(@)
  215. FMT(vowel/0)
  216. endphoneme
  217. phoneme 0# // [@] in unstressed syllables
  218. vowel starttype #o endtype #o
  219. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  220. ChangePhoneme(@)
  221. ENDIF
  222. ChangePhoneme(0)
  223. endphoneme
  224. phoneme 02 // becomes V in en-us
  225. vowel starttype #o endtype #o
  226. length 140
  227. ChangePhoneme(0)
  228. endphoneme
  229. phoneme V
  230. vowel starttype #a endtype #@
  231. length 140
  232. ChangeIfDiminished(@)
  233. FMT(vowel/V_2)
  234. endphoneme
  235. phoneme U
  236. vowel starttype #o endtype #o
  237. length 150
  238. FMT(vowel/uu)
  239. endphoneme
  240. phoneme A:
  241. vowel starttype #a endtype #a
  242. length 230
  243. IfNextVowelAppend(r-)
  244. FMT(vowel/aa_2)
  245. endphoneme
  246. phoneme A@ // Used for [A:] when followed by 'r'
  247. vowel starttype #a endtype #a
  248. ipa ɑː
  249. length 230
  250. IfNextVowelAppend(r-)
  251. FMT(vowel/aa_2)
  252. endphoneme
  253. phoneme A# // [a] in British [A:] in American
  254. vowel starttype #a endtype #a
  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 aI
  325. vowel starttype #a endtype #i
  326. length 240
  327. IF nextPh(#a) THEN
  328. AppendPhoneme(;)
  329. ENDIF
  330. FMT(vdiph/ai_2)
  331. endphoneme
  332. phoneme eI
  333. vowel starttype #e endtype #i
  334. length 210
  335. FMT(vdiph/eei)
  336. endphoneme
  337. phoneme OI
  338. vowel starttype #o endtype #i
  339. length 230
  340. FMT(vdiph/ooi)
  341. endphoneme
  342. phoneme e@
  343. vowel starttype #e endtype #@
  344. length 230
  345. IfNextVowelAppend(r-)
  346. FMT(vowel/ee_1)
  347. endphoneme
  348. phoneme i@
  349. vowel starttype #i endtype #@
  350. length 250
  351. IfNextVowelAppend(r-)
  352. FMT(vdiph2/ii@)
  353. endphoneme
  354. phoneme i@3
  355. vowel starttype #i endtype #@
  356. length 250
  357. IF MbrolaSynth THEN
  358. ChangePhoneme(i@)
  359. ENDIF
  360. IfNextVowelAppend(r-)
  361. FMT(vdiph2/ii@)
  362. endphoneme
  363. phoneme U@
  364. vowel starttype #u endtype #@
  365. length 200
  366. IfNextVowelAppend(r-)
  367. IF thisPh(isUnstressed) THEN
  368. FMT(vdiph2/8@)
  369. ENDIF
  370. FMT(vdiph2/uu@)
  371. endphoneme
  372. phoneme aI@
  373. vowel starttype #a endtype #@
  374. length 280
  375. IfNextVowelAppend(r-)
  376. FMT(vwl_en/aI@)
  377. endphoneme
  378. phoneme aI3
  379. vowel starttype #a endtype #@
  380. length 280
  381. ChangePhoneme(aI@)
  382. endphoneme
  383. phoneme aU@
  384. vowel starttype #a endtype #@
  385. length 280
  386. IfNextVowelAppend(r-)
  387. FMT(vwl_en/aU@)
  388. endphoneme
  389. phoneme IR // used for "ir" when [3:] is split (Scottish)
  390. vowel starttype #@ endtype #@
  391. length 190
  392. ipa əɹ
  393. IF nextPhW(r-) THEN
  394. ipa ə
  395. ENDIF
  396. IfNextVowelAppend(r-)
  397. FMT(vowelr/V_r)
  398. endphoneme
  399. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  400. vowel starttype #@ endtype #@
  401. length 210
  402. ipa ʌɹ
  403. IF nextPhW(r-) THEN
  404. ipa ʌ
  405. ENDIF
  406. IfNextVowelAppend(r-)
  407. FMT(vowelr/V3_r)
  408. endphoneme
  409. phoneme o:
  410. vowel starttype #o endtype #o
  411. length 220
  412. FMT(vowel/o)
  413. endphoneme
  414. phoneme A~
  415. vowel starttype #a endtype #a
  416. length 260
  417. FMT(vnasal/aa_n2)
  418. endphoneme
  419. phoneme O~
  420. vowel starttype #o endtype #o
  421. length 240
  422. FMT(vnasal/oo_n2)
  423. endphoneme
  424. phoneme e:
  425. vowel starttype #e endtype #e
  426. length 210
  427. FMT(vowel/e)
  428. endphoneme
  429. phoneme @# // TEST: [@] which is slightly more 'front'
  430. vowel starttype #i endtype #i
  431. unstressed
  432. length 130
  433. FMT(vowel/@_3)
  434. endphoneme