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_us 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. //*******************************************************************
  2. // VOWELS
  3. //*******************************************************************
  4. phoneme 3 // Schwa, used for rhotic schwa in American
  5. vowel starttype #@ endtype #@
  6. ipa ɚ
  7. unstressed
  8. length 210
  9. IfNextVowelAppend(r-)
  10. FMT(vwl_en_us/3_us)
  11. endphoneme
  12. phoneme @ // Schwa
  13. vowel starttype #@ endtype #@
  14. unstressed
  15. length 130
  16. IF nextPh(isRhotic) THEN
  17. ChangePhoneme(3)
  18. ENDIF
  19. IF thisPh(isWordEnd) THEN
  20. FMT(vowel/@_6)
  21. ENDIF
  22. FMT(vowel/@_4)
  23. endphoneme
  24. phoneme @2 // Schwa, changes to I before a vowel
  25. vowel starttype #@ endtype #@
  26. unstressed
  27. length 120
  28. IF nextPh(isVowel) THEN
  29. ChangePhoneme(I2)
  30. ENDIF
  31. FMT(vowel/@_low2)
  32. endphoneme
  33. phoneme a
  34. vowel starttype #e endtype #@
  35. ipa æ
  36. length 210
  37. ChangeIfDiminished(a#)
  38. IF nextPh(isNasal) AND NOT KlattSynth THEN
  39. FMT(vnasal/ee_n2)
  40. ELSEIF nextPh(r) AND thisPh(isStressed) THEN
  41. length 190
  42. FMT(vwl_en_us/ar)
  43. ENDIF
  44. FMT(vwl_en_us/a)
  45. endphoneme
  46. phoneme aa // 'bath' etc.
  47. import_phoneme en-us/a
  48. endphoneme
  49. phoneme a#
  50. vowel starttype #@ endtype #@
  51. ipa ɐ
  52. unstressed
  53. length 150
  54. IF thisPh(isStressed) THEN
  55. ChangePhoneme(a)
  56. ENDIF
  57. IF nextPhW(r) THEN
  58. ChangePhoneme(3)
  59. ENDIF
  60. FMT(vowel/a#_3)
  61. endphoneme
  62. phoneme E
  63. vowel starttype #e endtype #e
  64. length 190
  65. ChangeIfDiminished(I2)
  66. FMT(vwl_en_us/ee)
  67. endphoneme
  68. phoneme I
  69. vowel starttype #i endtype #i
  70. length 160
  71. IfNextVowelAppend(;)
  72. ChangeIfDiminished(I2)
  73. IF nextPhW(r) THEN
  74. length 200
  75. ENDIF
  76. FMT(vowel/ii_4)
  77. endphoneme
  78. phoneme I2
  79. vowel starttype #i endtype #i
  80. unstressed
  81. length 160
  82. IfNextVowelAppend(;)
  83. FMT(vowel/ii#_3)
  84. endphoneme
  85. phoneme I#
  86. vowel starttype #i endtype #i
  87. unstressed
  88. length 160
  89. ipa ᵻ
  90. // FMT(vowel/@_fnt)
  91. FMT(vowel/ii#)
  92. endphoneme
  93. phoneme i // optional variant of [I] for end of words
  94. vowel starttype #i endtype #i
  95. unstressed
  96. length 170
  97. IfNextVowelAppend(;)
  98. IF NOT thisPh(isFinalVowel) THEN
  99. ChangePhoneme(I)
  100. ENDIF
  101. FMT(vowel/ii_final)
  102. endphoneme
  103. phoneme 0
  104. vowel starttype #a endtype #a
  105. length 220
  106. ipa ɑː
  107. ChangeIfDiminished(@)
  108. IF nextPh(r) THEN
  109. ChangePhoneme(O:)
  110. ENDIF
  111. FMT(vowel/aa_8)
  112. endphoneme
  113. phoneme 02 // becomes V in en-us
  114. vowel starttype #o endtype #o
  115. length 140
  116. ChangePhoneme(V)
  117. endphoneme
  118. phoneme V
  119. vowel starttype #a endtype #@
  120. length 170
  121. ChangeIfDiminished(@)
  122. FMT(vowel/V_6)
  123. endphoneme
  124. phoneme U
  125. vowel starttype #o endtype #o
  126. length 145
  127. FMT(vowel/8_2)
  128. endphoneme
  129. phoneme A:
  130. vowel starttype #a endtype #a
  131. length 220
  132. IF nextPhW(r) THEN
  133. FMT(vwl_en_us/aar)
  134. ENDIF
  135. FMT(vowel/aa_8)
  136. endphoneme
  137. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  138. vowel starttype #a endtype #a
  139. ipa ɑː|ɹ
  140. IF nextPh(r-) THEN
  141. ipa ɑː
  142. ENDIF
  143. length 260
  144. IfNextVowelAppend(r-)
  145. FMT(vwl_en_us/aar)
  146. endphoneme
  147. phoneme A# // [a] in British [A:] in American
  148. vowel starttype #a endtype #a
  149. ChangePhoneme(A:)
  150. endphoneme
  151. phoneme 3:
  152. vowel starttype #@ endtype #@
  153. length 210
  154. IfNextVowelAppend(r-)
  155. ChangeIfDiminished(3)
  156. FMT(vwl_en_us/3_us2)
  157. endphoneme
  158. phoneme i:
  159. vowel starttype #i endtype #i
  160. length 180
  161. IfNextVowelAppend(;)
  162. FMT(vowel/i_en)
  163. endphoneme
  164. phoneme O:
  165. vowel starttype #o endtype #o
  166. length 220
  167. ChangeIfDiminished(@)
  168. IF nextPhW(r) THEN
  169. FMT(vwl_en_us/oor)
  170. ENDIF
  171. FMT(vowel/0_3)
  172. endphoneme
  173. phoneme O@
  174. vowel starttype #o endtype #@
  175. length 250
  176. ipa ɔː|ɹ
  177. IF nextPhW(r) THEN
  178. ipa ɔː
  179. ENDIF
  180. IfNextVowelAppend(r)
  181. FMT(vwl_en_us/oor)
  182. endphoneme
  183. phoneme o@
  184. vowel starttype #o endtype #@
  185. length 250
  186. ipa oː|ɹ
  187. IF nextPhW(r) THEN
  188. ipa oː
  189. ENDIF
  190. IfNextVowelAppend(r)
  191. FMT(vwl_en_us/or)
  192. endphoneme
  193. phoneme O
  194. vowel starttype #o endtype #o
  195. length 200
  196. ChangeIfDiminished(@)
  197. FMT(vowel/aa#)
  198. endphoneme
  199. phoneme u:
  200. vowel starttype #u endtype #u
  201. length 190
  202. IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
  203. length 160
  204. ENDIF
  205. FMT(vdiph2/uw_6)
  206. endphoneme
  207. phoneme aU
  208. vowel starttype #a endtype #o
  209. length 235
  210. FMT(vdiph/aoo)
  211. endphoneme
  212. phoneme oU
  213. vowel starttype #@ endtype #u
  214. length 230
  215. FMT(vdiph/8u)
  216. endphoneme
  217. phoneme aI
  218. vowel starttype #a endtype #i
  219. length 240
  220. IF nextPh(#a) OR nextPh(#o) THEN
  221. AppendPhoneme(;)
  222. ENDIF
  223. FMT(vwl_en_us/ai)
  224. endphoneme
  225. phoneme eI
  226. vowel starttype #e endtype #i
  227. length 220
  228. FMT(vdiph2/ei_4)
  229. // FMT(vdiph/eei_5)
  230. endphoneme
  231. phoneme OI
  232. vowel starttype #o endtype #i
  233. length 270
  234. FMT(vdiph/ooi_3)
  235. endphoneme
  236. phoneme e@
  237. vowel starttype #e endtype #@
  238. length 260
  239. ipa ɛ|ɹ
  240. IF nextPhW(r) THEN
  241. ipa ɛ
  242. ENDIF
  243. IfNextVowelAppend(r)
  244. FMT(vwl_en_us/er)
  245. endphoneme
  246. phoneme i@
  247. vowel starttype #i endtype #@
  248. length 250
  249. FMT(vdiph2/ii@) // don't append [r] before a vowel
  250. endphoneme
  251. phoneme i@3
  252. vowel starttype #i endtype #@
  253. length 280
  254. ipa ɪ|ɹ
  255. IF nextPhW(r) THEN
  256. ipa ɪ
  257. ENDIF
  258. IfNextVowelAppend(r)
  259. FMT(vwl_en_us/ir)
  260. endphoneme
  261. phoneme U@
  262. vowel starttype #@ endtype #@
  263. length 250
  264. ipa ʊ|ɹ
  265. IF nextPhW(r-) THEN
  266. ipa ʊ
  267. ENDIF
  268. IfNextVowelAppend(r-)
  269. FMT(vwl_en_us/ur)
  270. endphoneme
  271. phoneme aI@
  272. vowel starttype #a endtype #@
  273. length 300
  274. ipa aɪə
  275. IfNextVowelAppend(r-)
  276. FMT(vwl_en_us/ai@)
  277. endphoneme
  278. phoneme aI3
  279. vowel starttype #a endtype #@
  280. length 310
  281. ipa aɪɚ
  282. IfNextVowelAppend(r-)
  283. FMT(vwl_en_us/ai3)
  284. endphoneme
  285. phoneme aU@
  286. vowel starttype #a endtype #@
  287. length 300
  288. ipa aɪʊɹ
  289. IF nextPhW(r) THEN
  290. ipa aɪʊ
  291. ENDIF
  292. IfNextVowelAppend(r)
  293. FMT(vwl_en_us/aU@)
  294. endphoneme
  295. //==============
  296. // Consonants
  297. //==============
  298. phoneme r/ // used for [r] when not preceding a vowel
  299. liquid
  300. lengthmod 2 //
  301. // formants NULL
  302. endphoneme
  303. phoneme t# // reduced [t] as in "city"
  304. vcd alv stop
  305. ipa ɾ
  306. lengthmod 5
  307. Vowelin f1=1 f2=1700 -300 300 f3=-100 80
  308. Vowelout f1=2 f2=1700 -300 300 f3=-100 80
  309. IF nextPh(isNotVowel) THEN
  310. ChangePhoneme(t)
  311. ENDIF
  312. IF KlattSynth THEN
  313. IF PreVoicing THEN
  314. FMT(klatt/x_tap)
  315. ENDIF
  316. FMT(klatt/tap2) addWav(x/d, 70)
  317. ENDIF
  318. IF PreVoicing THEN
  319. FMT(d/x_tap)
  320. ENDIF
  321. FMT(d/tap2) addWav(x/d, 50)
  322. endphoneme
  323. phoneme t
  324. vls alv stop
  325. voicingswitch d
  326. lengthmod 2
  327. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  328. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  329. IF nextPhW(isVowel) AND nextPh(isUnstressed) THEN
  330. IF NOT next2PhW(n) OR nextPhW(3:) THEN
  331. IF prevPhW(isVowel) THEN
  332. ChangePhoneme(t#)
  333. ELIF prevPhW(n) THEN
  334. WAV(ustop/t, 60)
  335. ENDIF
  336. ENDIF
  337. ENDIF
  338. IF nextPh(isPause2) THEN
  339. WAV(ustop/t_)
  340. ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
  341. WAV(ustop/tr)
  342. ELIF nextPh(@-) THEN
  343. WAV(ustop/t_dnt, 50)
  344. ENDIF
  345. WAV(ustop/t, 90)
  346. endphoneme
  347. phoneme t2 // [t] which doesn't reduce
  348. import_phoneme base/t
  349. endphoneme
  350. phoneme ? // glottal stop
  351. vls glt stop
  352. lengthmod 1 // 5? longer preceding vowel
  353. nolink
  354. Vowelin glstop
  355. Vowelout glstop
  356. WAV(ustop/null)
  357. endphoneme