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.1KB

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