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

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