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

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