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

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