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_sc 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. //*******************************************************************
  2. // VOWELS
  3. //*******************************************************************
  4. phoneme @ // Schwa
  5. vowel starttype #@ endtype #@
  6. unstressed
  7. length 140
  8. IfNextVowelAppend(r-)
  9. FMT(vowel/@_3)
  10. endphoneme
  11. phoneme 3 // Schwa, used for rhotic schwa in American
  12. vowel starttype #@ endtype #@
  13. unstressed
  14. length 140
  15. IF nextPh(isVowel) THEN
  16. ChangePhoneme(@)
  17. ENDIF
  18. IfNextVowelAppend(r-)
  19. IF nextPh(isPause) THEN
  20. FMT(vowelr/V3_r)
  21. ENDIF
  22. FMT(vowel/V)
  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/@_3)
  32. endphoneme
  33. phoneme @5 // Schwa, changes to U before a vowel
  34. vowel starttype #@ endtype #@
  35. unstressed
  36. length 140
  37. IF nextPh(isVowel) OR nextPh(isPause) THEN
  38. ChangePhoneme(U)
  39. ENDIF
  40. FMT(vowel/@_3)
  41. endphoneme
  42. phoneme a
  43. vowel starttype #a endtype #a
  44. length 200
  45. ChangeIfDiminished(a#)
  46. ChangeIfNotStressed(a/)
  47. FMT(vowel/a_3)
  48. endphoneme
  49. phoneme a/
  50. vowel starttype #a endtype #a
  51. length 160
  52. ChangeIfDiminished(a#)
  53. FMT(vowel/a_3)
  54. endphoneme
  55. phoneme a#
  56. vowel starttype #@ endtype #@
  57. unstressed
  58. length 140
  59. IfNextVowelAppend(r-)
  60. FMT(vowel/a#)
  61. endphoneme
  62. phoneme aa // 'bath' etc.
  63. vowel starttype #a endtype #a
  64. ipa a:
  65. length 220
  66. IfNextVowelAppend(r-)
  67. FMT(vowel/a_3)
  68. endphoneme
  69. phoneme E
  70. vowel starttype #e endtype #e
  71. length 170
  72. ChangeIfDiminished(I2)
  73. FMT(vowel/e_e)
  74. endphoneme
  75. phoneme I
  76. vowel starttype #@ endtype #@
  77. length 110
  78. IF nextPh(l/2) THEN
  79. VowelEnding(l/L2_@L, -30)
  80. FMT(vowel/@_3)
  81. ENDIF
  82. FMT(vowel/e#)
  83. endphoneme
  84. phoneme I2
  85. vowel starttype #@ endtype #@
  86. unstressed
  87. length 110
  88. CALL I
  89. endphoneme
  90. phoneme i // optional variant of [I] for end of words
  91. vowel starttype #i endtype #e
  92. ipa e
  93. length 150
  94. IfNextVowelAppend(;)
  95. FMT(vowel/e_5)
  96. endphoneme
  97. phoneme 0
  98. vowel starttype #o endtype #o
  99. length 200
  100. ChangeIfDiminished(@)
  101. FMT(vowel/oo_2)
  102. endphoneme
  103. phoneme V
  104. vowel starttype #a endtype #@
  105. length 140
  106. ChangeIfDiminished(@)
  107. FMT(vowel/V_4)
  108. endphoneme
  109. phoneme U
  110. vowel starttype #u endtype #u
  111. ipa ʉ
  112. length 140
  113. FMT(vowel/u#_4)
  114. endphoneme
  115. phoneme A:
  116. vowel starttype #a endtype #a
  117. length 220
  118. ipa a:
  119. IfNextVowelAppend(r-)
  120. IF nextPh(r) THEN
  121. FMT(vowelr/aa_r, 30)
  122. ENDIF
  123. FMT(vowel/a_3)
  124. endphoneme
  125. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  126. vowel starttype #a endtype #@
  127. length 250
  128. ipa aː
  129. AppendPhoneme(r)
  130. FMT(vowelr/aa_r)
  131. endphoneme
  132. phoneme 3:
  133. vowel starttype #e endtype #@
  134. length 210
  135. ChangeIfNotStressed(VR) // also need "replace 02 3: VR" in voice file
  136. ipa e
  137. AppendPhoneme(r)
  138. FMT(vdiph2/e@)
  139. endphoneme
  140. phoneme i:
  141. vowel starttype #i endtype #i
  142. length 130
  143. IfNextVowelAppend(;)
  144. IF prevPh(w) THEN
  145. VowelStart(w/wi2)
  146. ENDIF
  147. IF nextPh(isVFricative) OR nextPh(isPause) THEN
  148. Length 180
  149. ENDIF
  150. FMT(vowel/i_5)
  151. endphoneme
  152. phoneme O:
  153. vowel starttype #o endtype #o
  154. length 200
  155. ChangeIfDiminished(@)
  156. IF nextPh(r) THEN
  157. FMT(vwl_en_us/or)
  158. ENDIF
  159. FMT(vowel/oo)
  160. endphoneme
  161. phoneme O@
  162. vowel starttype #o endtype #@
  163. length 230
  164. ipa ɔ
  165. AppendPhoneme(r)
  166. FMT(vowelr/oo_r)
  167. endphoneme
  168. phoneme o@
  169. vowel starttype #o endtype #@
  170. length 230
  171. ipa o
  172. AppendPhoneme(r)
  173. FMT(vowelr/o_r)
  174. endphoneme
  175. phoneme O
  176. vowel starttype #o endtype #o
  177. length 150
  178. ChangeIfDiminished(@)
  179. FMT(vowel/0_3)
  180. endphoneme
  181. phoneme u:
  182. vowel starttype #u endtype #u
  183. ipa ʉː
  184. length 160
  185. IF nextPh(isVFricative) THEN
  186. Length 200
  187. ENDIF
  188. IF nextPh(isPause) THEN
  189. FMT(vowel/u#_4, 40)
  190. ENDIF
  191. FMT(vowel/u#)
  192. endphoneme
  193. phoneme aU
  194. vowel starttype #a endtype #u
  195. ipa ʌʉ
  196. length 200
  197. FMT(vdiph/au#)
  198. endphoneme
  199. phoneme oU
  200. vowel starttype #o endtype #u
  201. ipa oː
  202. length 190
  203. FMT(vowel/o_3)
  204. endphoneme
  205. phoneme aI
  206. vowel starttype #a endtype #i
  207. length 190
  208. IF nextPh(isVowel) OR nextPh(isVFricative) THEN
  209. ChangePhoneme(aI2)
  210. ENDIF
  211. IF nextPh(l/2) THEN
  212. // before l/2 vwl_en/aI@_2+vwl_en/@L_2
  213. FMT(vwl_en/aI@_2)
  214. ENDIF
  215. // FMT(vdiph/&i_2
  216. FMT(vdiph/ai_7)
  217. endphoneme
  218. phoneme aI2
  219. vowel starttype #a endtype #i
  220. length 240
  221. FMT(vdiph/ai_7)
  222. endphoneme
  223. phoneme eI
  224. vowel starttype #e endtype #i
  225. ipa eː
  226. length 190
  227. FMT(vowel/e_2)
  228. endphoneme
  229. phoneme OI
  230. vowel starttype #o endtype #i
  231. length 210
  232. FMT(vdiph/0i_2)
  233. endphoneme
  234. phoneme e@
  235. vowel starttype #e endtype #@
  236. length 220
  237. ipa e
  238. AppendPhoneme(r)
  239. FMT(vdiph2/e@)
  240. endphoneme
  241. phoneme i@3
  242. vowel starttype #i endtype #@
  243. ipa ɪ
  244. length 220
  245. AppendPhoneme(r)
  246. FMT(vowelr/i_r)
  247. endphoneme
  248. phoneme U@
  249. vowel starttype #u endtype #@
  250. ipa ʉɹ
  251. IF nextPh(r-) THEN
  252. ipa ʉ
  253. ENDIF
  254. length 240
  255. IfNextVowelAppend(r-)
  256. FMT(vdiph2/u#@)
  257. endphoneme
  258. phoneme aU@
  259. vowel starttype #a endtype #@
  260. length 270
  261. IfNextVowelAppend(r-)
  262. FMT(vwl_en/aU@)
  263. endphoneme
  264. phoneme aI@
  265. vowel starttype #a endtype #@
  266. length 270
  267. IfNextVowelAppend(r-)
  268. FMT(vwl_en/aI@_2)
  269. endphoneme
  270. phoneme @L
  271. vowel starttype #@ endtype l
  272. unstressed
  273. length 160
  274. CALL vowelstart_l
  275. FMT(vwl_en/@L_2)
  276. endphoneme
  277. //==============
  278. // Consonants
  279. //==============
  280. phoneme r/ // used for [r] when not preceding a vowel
  281. liquid
  282. lengthmod 2 //
  283. FMT(NULL)
  284. endphoneme
  285. phoneme r
  286. liquid rhotic
  287. lengthmod 7
  288. trill
  289. IF nextPh(isNotVowel) THEN
  290. ChangePhoneme(r/)
  291. ENDIF
  292. CALL base/r
  293. endphoneme