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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  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 A# // [a] in British [A:] in American
  133. vowel starttype #a endtype #a
  134. ChangePhoneme(A:)
  135. endphoneme
  136. phoneme 3:
  137. vowel starttype #@ endtype #@
  138. length 240
  139. IfNextVowelAppend(r-)
  140. ChangeIfDiminished(3)
  141. FMT(vwl_en_us/3_us2)
  142. endphoneme
  143. phoneme i:
  144. vowel starttype #i endtype #i
  145. length 170
  146. IfNextVowelAppend(;)
  147. FMT(vowel/i_en)
  148. endphoneme
  149. phoneme O:
  150. vowel starttype #o endtype #o
  151. length 200
  152. ChangeIfDiminished(@)
  153. IF nextPhW(r) THEN
  154. FMT(vwl_en_us/oor)
  155. ENDIF
  156. FMT(vowel/0_3)
  157. endphoneme
  158. phoneme O@
  159. vowel starttype #o endtype #@
  160. length 250
  161. ipa ɔː|ɹ
  162. IF nextPhW(r) THEN
  163. ipa ɔː
  164. ENDIF
  165. IfNextVowelAppend(r)
  166. FMT(vwl_en_us/oor)
  167. endphoneme
  168. phoneme o@
  169. vowel starttype #o endtype #@
  170. length 250
  171. ipa oː|ɹ
  172. IF nextPhW(r) THEN
  173. ipa oː
  174. ENDIF
  175. IfNextVowelAppend(r)
  176. FMT(vwl_en_us/or)
  177. endphoneme
  178. phoneme O
  179. vowel starttype #o endtype #o
  180. length 200
  181. ChangeIfDiminished(@)
  182. FMT(vowel/aa#)
  183. endphoneme
  184. phoneme u:
  185. vowel starttype #u endtype #u
  186. length 190
  187. FMT(vdiph2/uw_6)
  188. endphoneme
  189. phoneme aU
  190. vowel starttype #a endtype #o
  191. length 235
  192. FMT(vdiph/aoo)
  193. endphoneme
  194. phoneme oU
  195. vowel starttype #@ endtype #u
  196. length 230
  197. FMT(vdiph/8u)
  198. endphoneme
  199. phoneme aI
  200. vowel starttype #a endtype #i
  201. length 240
  202. IF nextPh(#a) OR nextPh(#o) THEN
  203. AppendPhoneme(;)
  204. ENDIF
  205. FMT(vdiph/aae)
  206. endphoneme
  207. phoneme eI
  208. vowel starttype #e endtype #i
  209. length 220
  210. FMT(vdiph2/ei_4)
  211. // FMT(vdiph/eei_5)
  212. endphoneme
  213. phoneme OI
  214. vowel starttype #o endtype #i
  215. length 270
  216. FMT(vdiph/ooi_3)
  217. endphoneme
  218. phoneme e@
  219. vowel starttype #e endtype #@
  220. length 280
  221. ipa ɛ|ɹ
  222. IF nextPhW(r) THEN
  223. ipa ɛ
  224. ENDIF
  225. IfNextVowelAppend(r)
  226. FMT(vwl_en_us/er)
  227. endphoneme
  228. phoneme i@
  229. vowel starttype #i endtype #@
  230. length 250
  231. FMT(vdiph2/ii@) // don't append [r] before a vowel
  232. endphoneme
  233. phoneme i@3
  234. vowel starttype #i endtype #@
  235. length 280
  236. ipa ɪ|ɹ
  237. IF nextPhW(r) THEN
  238. ipa ɪ
  239. ENDIF
  240. IfNextVowelAppend(r)
  241. FMT(vwl_en_us/ir)
  242. endphoneme
  243. phoneme U@
  244. vowel starttype #@ endtype #@
  245. length 250
  246. ipa ʊ|ɹ
  247. IF nextPhW(r-) THEN
  248. ipa ʊ
  249. ENDIF
  250. IfNextVowelAppend(r-)
  251. FMT(vwl_en_us/ur)
  252. endphoneme
  253. phoneme aI@
  254. vowel starttype #a endtype #@
  255. length 300
  256. ipa aɪə
  257. IfNextVowelAppend(r-)
  258. FMT(vwl_en_us/ai@)
  259. endphoneme
  260. phoneme aI3
  261. vowel starttype #a endtype #@
  262. length 310
  263. ipa aɪɚ
  264. IfNextVowelAppend(r-)
  265. FMT(vwl_en_us/ai3)
  266. endphoneme
  267. phoneme aU@
  268. vowel starttype #a endtype #@
  269. length 300
  270. ipa aɪʊɹ
  271. IF nextPhW(r) THEN
  272. ipa aɪʊ
  273. ENDIF
  274. IfNextVowelAppend(r)
  275. FMT(vwl_en_us/aU@)
  276. endphoneme
  277. //==============
  278. // Consonants
  279. //==============
  280. phoneme r/ // used for [r] when not preceding a vowel
  281. liquid
  282. lengthmod 2 //
  283. // formants NULL
  284. endphoneme
  285. phoneme t
  286. vls alv stop
  287. voicingswitch d
  288. lengthmod 2
  289. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  290. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  291. IF nextPhW(isVowel) AND nextPh(isUnstressed) THEN
  292. IF NOT next2PhW(n) OR nextPhW(3:) THEN
  293. IF prevPhW(isVowel) THEN
  294. ChangePhoneme(t#)
  295. ELIF prevPhW(n) THEN
  296. WAV(ustop/t, 60)
  297. ENDIF
  298. ENDIF
  299. ENDIF
  300. IF nextPh(isPause2) THEN
  301. WAV(ustop/t_)
  302. ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
  303. WAV(ustop/tr)
  304. ELIF nextPh(@-) THEN
  305. WAV(ustop/t_dnt, 50)
  306. ENDIF
  307. WAV(ustop/t, 90)
  308. endphoneme
  309. phoneme t2 // [t] which doesn't reduce
  310. import_phoneme base/t
  311. endphoneme
  312. phoneme ? // glottal stop
  313. vls glt stop
  314. lengthmod 1 // 5? longer preceding vowel
  315. nolink
  316. Vowelin glstop
  317. Vowelout glstop
  318. WAV(ustop/null)
  319. endphoneme