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

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