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

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