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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. phoneme t2 // [t] which doesn't reduce
  2. import_phoneme base/t
  3. endphoneme
  4. phoneme t# // reduced [t] as in "city"
  5. vcd alv stop
  6. ipa ɾ
  7. lengthmod 5
  8. Vowelin f1=1 f2=1700 -300 300 f3=-100 80
  9. Vowelout f1=2 f2=1700 -300 300 f3=-100 80
  10. IF KlattSynth THEN
  11. IF PreVoicing THEN
  12. FMT(klatt/x_tap)
  13. ENDIF
  14. FMT(klatt/tap2) addWav(x/d, 70)
  15. ENDIF
  16. IF PreVoicing THEN
  17. FMT(d/x_tap)
  18. ENDIF
  19. FMT(d/tap2) addWav(x/d, 70)
  20. endphoneme
  21. phoneme d# // change to [d] or [t] depending on whether previous phoneme is voiced
  22. vls alv stop
  23. IF prevPh(isVoiced) THEN
  24. ChangePhoneme(d)
  25. ELSE
  26. ChangePhoneme(t)
  27. ENDIF
  28. endphoneme
  29. phoneme z# // change to [z] or [s] depending on whether previous phoneme is voiced
  30. vls alv frc sibilant
  31. IF prevPh(isVoiced) THEN
  32. ChangePhoneme(z)
  33. ELSE
  34. ChangePhoneme(s)
  35. ENDIF
  36. endphoneme
  37. phoneme l // use dark [l/2] before not-vowel
  38. liquid
  39. lengthmod 7
  40. IF nextPhW(isVowel) THEN
  41. ELSE
  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 prevPh(isVoiced) THEN
  87. ELSE
  88. ChangePhoneme(s)
  89. ENDIF
  90. ChangePhoneme(z)
  91. endphoneme
  92. //*******************************************************************
  93. // VOWELS
  94. //*******************************************************************
  95. phoneme @ // Schwa
  96. vowel starttype #@ endtype #@
  97. unstressed
  98. length 140
  99. IfNextVowelAppend(r-)
  100. IF thisPh(isWordEnd) THEN
  101. FMT(vowel/@_6)
  102. ENDIF
  103. FMT(vowel/@)
  104. endphoneme
  105. phoneme 3 // Schwa, used for rhotic schwa in American
  106. CALL @
  107. ipa ə
  108. endphoneme
  109. phoneme @2 // Schwa, changes to I before a vowel
  110. vowel starttype #@ endtype #@
  111. unstressed
  112. length 120
  113. IF nextPh(isVowel) THEN
  114. ChangePhoneme(I2)
  115. ENDIF
  116. FMT(vowel/@)
  117. endphoneme
  118. phoneme @5 // Schwa, changes to U before a vowel
  119. vowel starttype #@ endtype #@
  120. unstressed
  121. length 140
  122. IF nextPh(isVowel) OR nextPh(isPause) THEN
  123. ChangePhoneme(U)
  124. ENDIF
  125. FMT(vowel/@)
  126. endphoneme
  127. phoneme @L
  128. vowel starttype #@ endtype l
  129. ipa əl
  130. unstressed
  131. length 160
  132. CALL vowelstart_l
  133. FMT(vwl_en/@L)
  134. endphoneme
  135. phoneme a
  136. vowel starttype #a endtype #a
  137. length 160
  138. ChangeIfDiminished(a#)
  139. IF thisPh(isUnstressed) THEN
  140. FMT(vowel/a_8)
  141. ENDIF
  142. FMT(vowel/a)
  143. endphoneme
  144. phoneme a#
  145. vowel starttype #@ endtype #@
  146. ipa ɐ
  147. unstressed
  148. length 150
  149. FMT(vowel/a#_3)
  150. endphoneme
  151. phoneme aa // 'bath' etc.
  152. vowel starttype #a endtype #a
  153. ipa a
  154. length 185
  155. IfNextVowelAppend(r-)
  156. FMT(vowel/a)
  157. endphoneme
  158. phoneme E
  159. vowel starttype #e endtype #e
  160. length 140
  161. ChangeIfDiminished(I2)
  162. FMT(vowel/ee_5)
  163. endphoneme
  164. phoneme I
  165. vowel starttype #i endtype #i
  166. length 130
  167. IfNextVowelAppend(;)
  168. FMT(vowel/ii_2)
  169. endphoneme
  170. phoneme I2
  171. vowel starttype #i endtype #i
  172. unstressed
  173. length 130
  174. IfNextVowelAppend(;)
  175. FMT(vowel/ii_4)
  176. endphoneme
  177. phoneme I# // used for [I] which may be [@] in some accents
  178. vowel starttype #i endtype #i
  179. unstressed
  180. length 130
  181. IfNextVowelAppend(;)
  182. ChangePhoneme(I2)
  183. endphoneme
  184. phoneme i // optional variant of [I] for end of words
  185. vowel starttype #i endtype #i
  186. ipa ɪ
  187. length 140
  188. IfNextVowelAppend(;)
  189. FMT(vowel/ii_7)
  190. endphoneme
  191. phoneme 0
  192. vowel starttype #o endtype #o
  193. length 140
  194. ChangeIfDiminished(@)
  195. FMT(vowel/0)
  196. endphoneme
  197. phoneme V
  198. vowel starttype #a endtype #@
  199. length 140
  200. ChangeIfDiminished(@)
  201. FMT(vowel/V_2)
  202. endphoneme
  203. phoneme U
  204. vowel starttype #o endtype #o
  205. length 150
  206. FMT(vowel/uu)
  207. endphoneme
  208. phoneme A:
  209. vowel starttype #a endtype #a
  210. length 230
  211. IfNextVowelAppend(r-)
  212. FMT(vowel/aa_2)
  213. endphoneme
  214. phoneme A@ // Used for [A:] when followed by 'r'
  215. vowel starttype #a endtype #a
  216. ipa ɑː
  217. length 230
  218. IfNextVowelAppend(r-)
  219. FMT(vowel/aa_2)
  220. endphoneme
  221. phoneme 3:
  222. vowel starttype #@ endtype #@
  223. length 210
  224. IfNextVowelAppend(r-)
  225. ChangeIfDiminished(@)
  226. FMT(vowel/3_en)
  227. endphoneme
  228. phoneme i:
  229. vowel starttype #i endtype #i
  230. length 175
  231. IfNextVowelAppend(;)
  232. IF prevPh(w) THEN
  233. VowelStart(w/wi2)
  234. ENDIF
  235. FMT(vowel/i_en)
  236. endphoneme
  237. phoneme O:
  238. vowel starttype #o endtype #o
  239. length 230
  240. ChangeIfDiminished(@)
  241. FMT(vowel/oo_en)
  242. endphoneme
  243. phoneme O
  244. vowel starttype #o endtype #o
  245. length 200
  246. ChangeIfDiminished(@)
  247. FMT(vowel/oo_en)
  248. endphoneme
  249. phoneme O@
  250. vowel starttype #o endtype #o
  251. ipa ɔː
  252. length 240
  253. IfNextVowelAppend(r-)
  254. FMT(vowel/oo_en)
  255. endphoneme
  256. phoneme o@
  257. vowel starttype #o endtype #o
  258. ipa ɔː
  259. length 250
  260. IfNextVowelAppend(r-)
  261. FMT(vowel/oo_en)
  262. endphoneme
  263. phoneme u:
  264. vowel starttype #u endtype #u
  265. length 210
  266. IF nextPh(l/2) THEN
  267. FMT(vwl_en/u_L)
  268. ENDIF
  269. FMT(vdiph2/uw_2)
  270. endphoneme
  271. phoneme aU
  272. vowel starttype #a endtype #u
  273. length 230
  274. FMT(vdiph/au)
  275. endphoneme
  276. phoneme oU
  277. vowel starttype #@ endtype #u
  278. ipa əʊ
  279. length 220
  280. FMT(vdiph/@u_en)
  281. endphoneme
  282. phoneme aI
  283. vowel starttype #a endtype #i
  284. length 240
  285. IF nextPh(#a) THEN
  286. AppendPhoneme(;)
  287. ENDIF
  288. FMT(vdiph/ai_2)
  289. endphoneme
  290. phoneme eI
  291. vowel starttype #e endtype #i
  292. length 210
  293. FMT(vdiph/eei)
  294. endphoneme
  295. phoneme OI
  296. vowel starttype #o endtype #i
  297. length 230
  298. FMT(vdiph/ooi)
  299. endphoneme
  300. phoneme e@
  301. vowel starttype #e endtype #@
  302. length 230
  303. IfNextVowelAppend(r-)
  304. FMT(vowel/ee_1)
  305. endphoneme
  306. phoneme i@
  307. vowel starttype #i endtype #@
  308. length 250
  309. IfNextVowelAppend(r-)
  310. FMT(vdiph2/ii@)
  311. endphoneme
  312. phoneme i@3
  313. vowel starttype #i endtype #@
  314. length 250
  315. IfNextVowelAppend(r-)
  316. FMT(vdiph2/ii@)
  317. endphoneme
  318. phoneme U@
  319. vowel starttype #u endtype #@
  320. length 200
  321. IfNextVowelAppend(r-)
  322. IF thisPh(isUnstressed) THEN
  323. FMT(vdiph2/8@)
  324. ENDIF
  325. FMT(vdiph2/uu@)
  326. endphoneme
  327. phoneme aI@
  328. vowel starttype #a endtype #@
  329. length 280
  330. IfNextVowelAppend(r-)
  331. FMT(vwl_en/aI@)
  332. endphoneme
  333. phoneme aI3
  334. vowel starttype #a endtype #@
  335. length 280
  336. ChangePhoneme(aI@)
  337. endphoneme
  338. phoneme aU@
  339. vowel starttype #a endtype #@
  340. length 280
  341. IfNextVowelAppend(r-)
  342. FMT(vwl_en/aU@)
  343. endphoneme
  344. phoneme IR // used for "ir" when [3:] is split (Scottish)
  345. vowel starttype #@ endtype #@
  346. length 190
  347. ipa əɹ
  348. IF nextPhW(r-) THEN
  349. ipa ə
  350. ENDIF
  351. IfNextVowelAppend(r-)
  352. FMT(vowelr/V_r)
  353. endphoneme
  354. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  355. vowel starttype #@ endtype #@
  356. length 210
  357. ipa ʌɹ
  358. IF nextPhW(r-) THEN
  359. ipa ʌ
  360. ENDIF
  361. IfNextVowelAppend(r-)
  362. FMT(vowelr/V3_r)
  363. endphoneme
  364. phoneme o:
  365. vowel starttype #o endtype #o
  366. length 220
  367. FMT(vowel/o)
  368. endphoneme
  369. phoneme A~
  370. vowel starttype #a endtype #a
  371. length 260
  372. FMT(vnasal/aa_n2)
  373. endphoneme
  374. phoneme O~
  375. vowel starttype #o endtype #o
  376. length 240
  377. FMT(vnasal/oo_n2)
  378. endphoneme
  379. phoneme e:
  380. vowel starttype #e endtype #e
  381. length 210
  382. FMT(vowel/e)
  383. endphoneme
  384. phoneme @# // TEST: [@] which is slightly more 'front'
  385. vowel starttype #i endtype #i
  386. unstressed
  387. length 130
  388. FMT(vowel/@_3)
  389. endphoneme