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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. FMT(vowel/@_4)
  20. endphoneme
  21. phoneme @/ // Schwa, end of word
  22. vowel starttype #@ endtype #@
  23. unstressed
  24. length 130
  25. FMT(vowel/@_low2)
  26. endphoneme
  27. phoneme @2 // Schwa, changes to I before a vowel
  28. vowel starttype #@ endtype #@
  29. unstressed
  30. length 120
  31. IF nextPh(isVowel) THEN
  32. ChangePhoneme(I2)
  33. ENDIF
  34. FMT(vowel/@_low2)
  35. endphoneme
  36. phoneme @L
  37. vowel starttype #@ endtype l
  38. unstressed
  39. length 160
  40. FMT(vwl_en/@L)
  41. endphoneme
  42. phoneme a
  43. vowel starttype #e endtype #@
  44. ipa æ
  45. length 210
  46. ChangeIfDiminished(a#)
  47. IF nextPh(isNasal) THEN
  48. FMT(vnasal/ee_n2)
  49. ENDIF
  50. FMT(vwl_en_us/a)
  51. endphoneme
  52. phoneme aa // 'bath' etc.
  53. import_phoneme en-us/a
  54. endphoneme
  55. phoneme a#
  56. vowel starttype #@ endtype #@
  57. ipa ɐ
  58. unstressed
  59. length 150
  60. FMT(vowel/a#_3)
  61. endphoneme
  62. phoneme E
  63. vowel starttype #e endtype #e
  64. length 195
  65. ChangeIfDiminished(I2)
  66. FMT(vwl_en_us/ee)
  67. endphoneme
  68. phoneme I
  69. vowel starttype #i endtype #i
  70. length 160
  71. IfNextVowelAppend(;)
  72. ChangeIfDiminished(I2)
  73. FMT(vowel/ii_4)
  74. endphoneme
  75. phoneme I2
  76. vowel starttype #i endtype #i
  77. unstressed
  78. length 160
  79. IfNextVowelAppend(;)
  80. FMT(vowel/ii#_3)
  81. endphoneme
  82. phoneme i // optional variant of [I] for end of words
  83. vowel starttype #i endtype #i
  84. unstressed
  85. length 170
  86. IfNextVowelAppend(;)
  87. FMT(vowel/ii_final)
  88. endphoneme
  89. phoneme 0
  90. vowel starttype #a endtype #a
  91. length 200
  92. ipa ɑː
  93. ChangeIfDiminished(@)
  94. IF nextPh(r) THEN
  95. ChangePhoneme(O:)
  96. // FMT(vwl_en_us/oor)
  97. ENDIF
  98. FMT(vowel/aa_8)
  99. endphoneme
  100. phoneme V
  101. vowel starttype #a endtype #@
  102. length 170
  103. ChangeIfDiminished(@)
  104. FMT(vowel/V_6)
  105. endphoneme
  106. phoneme U
  107. vowel starttype #o endtype #o
  108. length 145
  109. FMT(vowel/8_2)
  110. endphoneme
  111. phoneme A:
  112. vowel starttype #a endtype #a
  113. length 210
  114. IF nextPh(r) THEN
  115. FMT(vwl_en_us/ar)
  116. ENDIF
  117. FMT(vowel/aa_8)
  118. endphoneme
  119. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  120. vowel starttype #a endtype #a
  121. ipa ɑːɹ
  122. IF nextPh(r-) THEN
  123. ipa ɑː
  124. ENDIF
  125. length 260
  126. IfNextVowelAppend(r-)
  127. FMT(vwl_en_us/ar)
  128. endphoneme
  129. phoneme 3:
  130. vowel starttype #@ endtype #@
  131. length 240
  132. IfNextVowelAppend(r-)
  133. FMT(vwl_en_us/3_us2)
  134. endphoneme
  135. phoneme i:
  136. vowel starttype #i endtype #i
  137. length 170
  138. IfNextVowelAppend(;)
  139. FMT(vowel/i_en)
  140. endphoneme
  141. phoneme O:
  142. vowel starttype #o endtype #o
  143. length 210
  144. ChangeIfDiminished(@)
  145. IF nextPh(r) THEN
  146. FMT(vwl_en_us/oor)
  147. ENDIF
  148. FMT(vowel/0_3)
  149. endphoneme
  150. phoneme O@
  151. vowel starttype #o endtype #@
  152. length 250
  153. ipa ɔːɹ
  154. IF nextPhW(r) THEN
  155. ipa ɔː
  156. ENDIF
  157. IfNextVowelAppend(r)
  158. FMT(vwl_en_us/oor)
  159. endphoneme
  160. phoneme o@
  161. vowel starttype #o endtype #@
  162. length 250
  163. ipa oːɹ
  164. IF nextPhW(r) THEN
  165. ipa oː
  166. ENDIF
  167. IfNextVowelAppend(r)
  168. FMT(vwl_en_us/or)
  169. endphoneme
  170. phoneme O
  171. vowel starttype #o endtype #o
  172. length 200
  173. ChangeIfDiminished(@)
  174. FMT(vowel/aa#)
  175. endphoneme
  176. phoneme u:
  177. vowel starttype #u endtype #u
  178. length 190
  179. FMT(vdiph2/uw)
  180. endphoneme
  181. phoneme aU
  182. vowel starttype #a endtype #o
  183. length 235
  184. FMT(vdiph/aoo)
  185. endphoneme
  186. phoneme oU
  187. vowel starttype #@ endtype #u
  188. length 230
  189. FMT(vdiph/8u)
  190. endphoneme
  191. phoneme aI
  192. vowel starttype #a endtype #i
  193. length 250
  194. IF nextPh(#a) OR nextPh(#o) THEN
  195. AppendPhoneme(;)
  196. ENDIF
  197. FMT(vdiph/aae)
  198. endphoneme
  199. phoneme eI
  200. vowel starttype #e endtype #i
  201. length 230
  202. FMT(vdiph2/ei_4)
  203. endphoneme
  204. phoneme OI
  205. vowel starttype #o endtype #i
  206. length 285
  207. FMT(vdiph/ooi_4)
  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@3
  220. vowel starttype #i endtype #@
  221. length 280
  222. ipa ɪɹ
  223. IF nextPhW(r) THEN
  224. ipa ɪ
  225. ENDIF
  226. IfNextVowelAppend(r)
  227. FMT(vwl_en_us/ir)
  228. endphoneme
  229. phoneme U@
  230. vowel starttype #@ endtype #@
  231. length 250
  232. ipa ʊɹ
  233. IF nextPhW(r-) THEN
  234. ipa ʊ
  235. ENDIF
  236. IfNextVowelAppend(r-)
  237. FMT(vwl_en_us/ur)
  238. endphoneme
  239. phoneme aI@
  240. vowel starttype #a endtype #@
  241. length 300
  242. ipa aɪəɹ
  243. IF nextPhW(r-) THEN
  244. ipa aɪə
  245. ENDIF
  246. IfNextVowelAppend(r-)
  247. FMT(vwl_en_us/ai@)
  248. endphoneme
  249. phoneme aU@
  250. vowel starttype #a endtype #@
  251. length 300
  252. ipa aɪʊɹ
  253. IF nextPhW(r) THEN
  254. ipa aɪʊ
  255. ENDIF
  256. IfNextVowelAppend(r)
  257. FMT(vwl_en_us/aU@)
  258. endphoneme
  259. //==============
  260. // Consonants
  261. //==============
  262. phoneme r/ // used for [r] when not preceding a vowel
  263. liquid
  264. lengthmod 2 //
  265. // formants NULL
  266. endphoneme
  267. phoneme t
  268. vls alv stop
  269. voicingswitch d
  270. lengthmod 2
  271. IF prevPh(isVowel) OR prevPh(n) THEN
  272. IF nextPh(isVowel) AND nextPh(isUnstressed) AND thisPh(notWordStart) AND nextPh(notWordStart) THEN
  273. ChangePhoneme(t#)
  274. ENDIF
  275. ENDIF
  276. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  277. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  278. IF nextPh(isPause2) THEN
  279. WAV(ustop/t_)
  280. ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
  281. WAV(ustop/tr)
  282. ELIF nextPh(@-) THEN
  283. WAV(ustop/t_dnt, 50)
  284. ENDIF
  285. WAV(ustop/t, 90)
  286. endphoneme