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

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