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_german 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. //=========================================================
  2. // German
  3. //=========================================================
  4. phoneme @ // Schwa
  5. vowel starttype #@ endtype #@
  6. unstressed
  7. length 120
  8. IF nextPh(r) THEN
  9. IF next2Ph(isVowel) THEN
  10. ELSE
  11. ChangePhoneme(3)
  12. ENDIF
  13. ENDIF
  14. FMT(vowel/@_4)
  15. endphoneme
  16. phoneme 3 // open Schwa+r
  17. vowel starttype #@ endtype #@
  18. unstressed flag1
  19. length 160
  20. IF thisPh(isFinalVowel) THEN
  21. Length 210
  22. ENDIF
  23. FMT(vowel/a#_3) // in eSpeak 1.44, this used vowel/V_3 at end-of-word
  24. endphoneme
  25. phoneme a
  26. vowel starttype #a endtype #a
  27. length 110
  28. IF nextPh(isRhotic) THEN
  29. length 125
  30. ENDIF
  31. FMT(vowel/a)
  32. endphoneme
  33. phoneme E
  34. vowel starttype #e endtype #e
  35. length 120
  36. IF nextPh(*) THEN
  37. length 135
  38. ENDIF
  39. FMT(vowel/e_mid2)
  40. endphoneme
  41. phoneme E2 // as[E] but reduces to @ if unstressed
  42. vowel starttype #e endtype #e
  43. length 120
  44. ChangeIfDiminished(@)
  45. IF nextPh(*) THEN
  46. length 135
  47. ENDIF
  48. FMT(vowel/e_mid2)
  49. endphoneme
  50. phoneme I
  51. vowel starttype #i endtype #i
  52. length 120
  53. IF nextPh(*) THEN
  54. length 135
  55. ENDIF
  56. IfNextVowelAppend(;)
  57. FMT(vowel/ii)
  58. endphoneme
  59. phoneme I:
  60. vowel starttype #i endtype #i
  61. length 190
  62. FMT(vowel/ii)
  63. endphoneme
  64. phoneme O
  65. vowel starttype #o endtype #o
  66. length 120
  67. IF nextPh(*) THEN
  68. length 135
  69. ENDIF
  70. FMT(vowel/oo)
  71. endphoneme
  72. phoneme U
  73. vowel starttype #u endtype #u
  74. length 120
  75. IF nextPh(*) THEN
  76. length 135
  77. ENDIF
  78. IF nextPh(r) THEN
  79. IF next2Ph(isVowel) THEN
  80. ELSE
  81. ChangePhoneme(UR)
  82. ENDIF
  83. ENDIF
  84. FMT(vowel/uu_2)
  85. endphoneme
  86. phoneme A:
  87. vowel starttype #a endtype #a
  88. length 250
  89. FMT(vowel/aa_6)
  90. endphoneme
  91. phoneme A // reduces to [a] if not stressed
  92. vowel starttype #a endtype #a
  93. length 250
  94. ChangeIfUnstressed(a)
  95. FMT(vowel/aa_6)
  96. endphoneme
  97. phoneme i:
  98. vowel starttype #i endtype #i
  99. length 180
  100. IF prevPh(w) THEN
  101. VowelStart(w/wi2)
  102. ENDIF
  103. FMT(vowel/i_2)
  104. endphoneme
  105. phoneme i2
  106. vowel starttype #i endtype #i
  107. length 180
  108. ChangeIfNotStressed(I)
  109. IF prevPh(w) THEN
  110. VowelStart(w/wi2)
  111. ENDIF
  112. FMT(vowel/i_2)
  113. endphoneme
  114. phoneme u:
  115. vowel starttype #u endtype #u
  116. length 190
  117. FMT(vowel/u)
  118. endphoneme
  119. phoneme aU
  120. vowel starttype #a endtype #u
  121. length 220
  122. FMT(vdiph/aau_6)
  123. endphoneme
  124. phoneme aI
  125. vowel starttype #a endtype #i
  126. length 210
  127. FMT(vdiph/ai_5)
  128. endphoneme
  129. phoneme EI
  130. vowel starttype #e endtype #i
  131. length 210
  132. FMT(vdiph/eei)
  133. endphoneme
  134. phoneme OY
  135. vowel starttype #o endtype #i
  136. length 220
  137. FMT(vdiph/oi)
  138. endphoneme
  139. phoneme E:
  140. vowel starttype #e endtype #e
  141. length 200
  142. FMT(vowel/e_8)
  143. endphoneme
  144. phoneme e:
  145. vowel starttype #e endtype #e
  146. length 200
  147. FMT(vowel/e_2)
  148. endphoneme
  149. phoneme o:
  150. vowel starttype #o endtype #o
  151. length 210
  152. FMT(vowel/o)
  153. endphoneme
  154. phoneme y:
  155. vowel starttype #u endtype #u
  156. length 200
  157. FMT(vowel/y)
  158. endphoneme
  159. phoneme y
  160. vowel starttype #u endtype #u
  161. ipa ʏ
  162. length 110
  163. IF nextPh(*) THEN
  164. length 115
  165. ENDIF
  166. FMT(vowel/yy_4)
  167. endphoneme
  168. phoneme Y:
  169. vowel starttype #@ endtype #@
  170. length 180
  171. FMT(vowel/y#)
  172. endphoneme
  173. phoneme W
  174. vowel starttype #@ endtype #@
  175. length 150
  176. IF nextPh(*) THEN
  177. length 160
  178. ENDIF
  179. FMT(vowel/oe)
  180. endphoneme
  181. // CONSONANTS
  182. //===========
  183. phoneme ts
  184. import_phoneme consonants/ts
  185. endphoneme
  186. phoneme pF
  187. vls blb afr
  188. ipa pf
  189. Vowelout f1=0 f2=1000 -500 -350 f3=-200 80
  190. lengthmod 2
  191. WAV(ufric/f) // could replace this with a [pf] wav file
  192. endphoneme
  193. phoneme g# // for "ig" -> [IC] or [Ig]
  194. vls pal frc palatal
  195. lengthmod 3
  196. IF nextPhW(isVoiced) THEN
  197. ChangePhoneme(g)
  198. ELSE
  199. ChangePhoneme(C)
  200. ENDIF
  201. endphoneme
  202. phoneme l/ // used for [l] when not before a vowel
  203. liquid
  204. lengthmod 7
  205. IF nextPh(isVowel) THEN
  206. ChangePhoneme(l)
  207. ENDIF
  208. PrevVowelEndings
  209. VowelEnding(l/L1_@L, -60)
  210. VowelEnding(l/L1_aL, -40)
  211. VowelEnding(l/L1_eL, -30)
  212. VowelEnding(l/L1_iL, -30)
  213. VowelEnding(l/L1_oL, -40)
  214. VowelEnding(l/L1_uL, -40)
  215. EndSwitch
  216. FMT(l/l_3)
  217. endphoneme
  218. phoneme j
  219. liquid palatal
  220. lengthmod 7
  221. IF nextPh(isVowel) THEN
  222. NextVowelStarts
  223. VowelStart(j/j@)
  224. VowelStart(j/ja)
  225. VowelStart(j/je)
  226. VowelStart(j/ji)
  227. VowelStart(j/jo)
  228. VowelStart(j/ju)
  229. EndSwitch
  230. VowelEnding(j/xj, -30)
  231. IF prevPh(isPause) THEN
  232. FMT(j/_j_short) // difference from base/j
  233. ENDIF
  234. ELSE
  235. // no vowel follows
  236. Vowelout len=70
  237. FMT(j/j_)
  238. ENDIF
  239. endphoneme
  240. phoneme r
  241. vcd alv flp rhotic
  242. lengthmod 6
  243. IF prevPhW(@-) THEN
  244. ELSE
  245. IF nextPhW(isVowel) THEN
  246. IF prevPhW(isVowel) THEN
  247. ChangePhoneme(R)
  248. ELSE
  249. IF prevPhW(t) THEN
  250. ELSE
  251. InsertPhoneme(@-)
  252. ENDIF
  253. ENDIF
  254. ENDIF
  255. ENDIF
  256. IF prevPh(isFlag1) THEN
  257. ChangePhoneme(NULL) // 'r' is already included in the previous vowel
  258. ENDIF
  259. CALL base/*
  260. endphoneme
  261. // This version of [r] was used in eSpeak 1.44, but received complaints
  262. phoneme r2 // uvular trill or fricative
  263. vcd uvl frc
  264. ipa ʀ
  265. lengthmod 6
  266. length 110
  267. IF nextPhW(isVowel) THEN
  268. FMT(r3/r_uvl) addWav(r3/r_uvl.wav, 50)
  269. ELSE
  270. IF prevPh(isFlag1) THEN
  271. ChangePhoneme(NULL) // 'r' is already included in the previous vowel
  272. ELSE
  273. ChangePhoneme(V#)
  274. ENDIF
  275. ENDIF
  276. endphoneme
  277. phoneme V# // used for 'r' after a vowel (to create a diphthong)
  278. liquid
  279. lengthmod 7
  280. IF nextPhW(isVowel) THEN
  281. ChangePhoneme(r)
  282. ENDIF
  283. ipa ɐ
  284. IF prevPh(#a) OR prevPh(E) THEN
  285. FMT(r/V_2_)
  286. ENDIF
  287. IF prevPh(#u) THEN
  288. FMT(r/@_)
  289. ENDIF
  290. FMT(r/V_)
  291. endphoneme
  292. phoneme UR
  293. vowel starttype #u endtype #@
  294. ipa ʊɐ
  295. flag1
  296. length 180
  297. FMT(vwl_de/uu_@)
  298. endphoneme
  299. phoneme oU // for English words
  300. import_phoneme en-us/oU
  301. endphoneme
  302. phoneme A~
  303. vowel starttype #a endtype #a
  304. length 260
  305. FMT(vnasal/aa_n4)
  306. endphoneme
  307. // translate from English to German phonemes
  308. equivalents NULL // disable this table
  309. 0 O
  310. 3 3
  311. 3: W :
  312. @ @
  313. @- @-
  314. @2 @
  315. @5 @
  316. @L U l
  317. a a
  318. a# a
  319. A: A:
  320. A@ A: r
  321. aa a
  322. aI aI
  323. aI@ aI 3
  324. aU aU
  325. aU@ aU 3
  326. A~ A~
  327. E E
  328. e: e:
  329. e@ E: r
  330. eI e j
  331. i I
  332. I I
  333. I2 I
  334. i: i:
  335. i@ i: 3
  336. i@3 i: r
  337. O O
  338. O: O :
  339. o: o:
  340. O@ O : r
  341. o@ O : r
  342. OI OY
  343. oU oU
  344. O~ O n
  345. U U
  346. u: u:
  347. U@ U r
  348. V W
  349. IR I r
  350. VR W r
  351. b b
  352. C C
  353. d d
  354. D D
  355. dZ dZ
  356. f f
  357. g g
  358. h h
  359. j j
  360. k k
  361. l l
  362. l# l#
  363. m m
  364. n n
  365. N N
  366. n^ n^
  367. p p
  368. Q Q
  369. r r
  370. r- r
  371. s s
  372. S S
  373. t t
  374. T T
  375. t2 t
  376. tS tS
  377. v v
  378. w w
  379. x x
  380. z z
  381. Z Z
  382. endphoneme