| 1 |
|
| 2 |
|
| 3 |
//========================================================= |
| 4 |
// German |
| 5 |
//========================================================= |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
phoneme @ // Schwa |
| 10 |
vwl starttype #@ endtype #@ |
| 11 |
unstressed |
| 12 |
length 40 |
| 13 |
IF nextPh(r) THEN |
| 14 |
IF next2Ph(isVowel) THEN |
| 15 |
ELSE |
| 16 |
ChangePhoneme(3) |
| 17 |
ENDIF |
| 18 |
ENDIF |
| 19 |
IF thisPh (isWordEnd) THEN |
| 20 |
length 120 |
| 21 |
ENDIF |
| 22 |
FMT(vowel/@_4) |
| 23 |
endphoneme |
| 24 |
|
| 25 |
|
| 26 |
phoneme 3 // open Schwa+r |
| 27 |
vwl starttype #@ endtype #@ |
| 28 |
unstressed flag1 |
| 29 |
length 140 |
| 30 |
FMT(vowel/a#_3) // in eSpeak 1.44, this used vowel/V_3 at end-of-word |
| 31 |
endphoneme |
| 32 |
|
| 33 |
|
| 34 |
phoneme a |
| 35 |
vwl starttype #a endtype #a |
| 36 |
length 110 |
| 37 |
IF nextPh(isRhotic) THEN |
| 38 |
length 125 |
| 39 |
ENDIF |
| 40 |
FMT(vowel/a) |
| 41 |
endphoneme |
| 42 |
|
| 43 |
|
| 44 |
phoneme E |
| 45 |
vwl starttype #e endtype #e |
| 46 |
length 120 |
| 47 |
IF nextPh(*) THEN |
| 48 |
length 135 |
| 49 |
ENDIF |
| 50 |
FMT(vowel/e_mid2) |
| 51 |
endphoneme |
| 52 |
|
| 53 |
|
| 54 |
phoneme E2 // as[E] but reduces to @ if unstressed |
| 55 |
vwl starttype #e endtype #e |
| 56 |
length 120 |
| 57 |
ChangeIfDiminished(@) |
| 58 |
IF nextPh(*) THEN |
| 59 |
length 135 |
| 60 |
ENDIF |
| 61 |
FMT(vowel/e_mid2) |
| 62 |
endphoneme |
| 63 |
|
| 64 |
|
| 65 |
phoneme I |
| 66 |
vwl starttype #i endtype #i |
| 67 |
length 120 |
| 68 |
IF nextPh(*) THEN |
| 69 |
length 135 |
| 70 |
ENDIF |
| 71 |
IfNextVowelAppend(;) |
| 72 |
FMT(vowel/ii) |
| 73 |
endphoneme |
| 74 |
|
| 75 |
|
| 76 |
phoneme I: |
| 77 |
vwl starttype #i endtype #i |
| 78 |
length 190 |
| 79 |
FMT(vowel/ii) |
| 80 |
endphoneme |
| 81 |
|
| 82 |
|
| 83 |
phoneme O |
| 84 |
vwl starttype #o endtype #o |
| 85 |
length 120 |
| 86 |
IF nextPh(*) THEN |
| 87 |
length 135 |
| 88 |
ENDIF |
| 89 |
FMT(vowel/oo) |
| 90 |
endphoneme |
| 91 |
|
| 92 |
|
| 93 |
phoneme U |
| 94 |
vwl starttype #u endtype #u |
| 95 |
length 120 |
| 96 |
IF nextPh(*) THEN |
| 97 |
length 135 |
| 98 |
ENDIF |
| 99 |
|
| 100 |
IF nextPh(r) AND next2Ph(isNotVowel) THEN |
| 101 |
ChangePhoneme(UR) |
| 102 |
ENDIF |
| 103 |
FMT(vowel/uu_2) |
| 104 |
endphoneme |
| 105 |
|
| 106 |
|
| 107 |
phoneme A: |
| 108 |
vwl starttype #a endtype #a |
| 109 |
length 250 |
| 110 |
FMT(vowel/aa_6) |
| 111 |
endphoneme |
| 112 |
|
| 113 |
|
| 114 |
phoneme A // reduces to [a] if not stressed |
| 115 |
vwl starttype #a endtype #a |
| 116 |
length 250 |
| 117 |
ChangeIfUnstressed(a) |
| 118 |
FMT(vowel/aa_6) |
| 119 |
endphoneme |
| 120 |
|
| 121 |
|
| 122 |
phoneme i: |
| 123 |
vwl starttype #i endtype #i |
| 124 |
length 180 |
| 125 |
IF prevPh(w) THEN |
| 126 |
VowelStart(w/wi2) |
| 127 |
ENDIF |
| 128 |
|
| 129 |
// IF nextPh(r) AND next2Ph(isNotVowel) THEN |
| 130 |
// ChangePhoneme(iR) |
| 131 |
// ENDIF |
| 132 |
FMT(vowel/i_2) |
| 133 |
endphoneme |
| 134 |
|
| 135 |
|
| 136 |
phoneme i2 |
| 137 |
vwl starttype #i endtype #i |
| 138 |
length 180 |
| 139 |
ChangeIfNotStressed(I) |
| 140 |
IF prevPh(w) THEN |
| 141 |
VowelStart(w/wi2) |
| 142 |
ENDIF |
| 143 |
FMT(vowel/i_2) |
| 144 |
endphoneme |
| 145 |
|
| 146 |
|
| 147 |
phoneme u: |
| 148 |
vwl starttype #u endtype #u |
| 149 |
length 190 |
| 150 |
FMT(vowel/u) |
| 151 |
endphoneme |
| 152 |
|
| 153 |
|
| 154 |
phoneme aU |
| 155 |
vwl starttype #a endtype #u |
| 156 |
length 220 |
| 157 |
FMT(vdiph/aau_6) |
| 158 |
endphoneme |
| 159 |
|
| 160 |
|
| 161 |
phoneme aI |
| 162 |
vwl starttype #a endtype #i |
| 163 |
length 210 |
| 164 |
FMT(vdiph/ai_5) |
| 165 |
endphoneme |
| 166 |
|
| 167 |
|
| 168 |
phoneme EI |
| 169 |
import_phoneme en-us/eI |
| 170 |
endphoneme |
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
phoneme OY |
| 175 |
vwl starttype #o endtype #i |
| 176 |
length 220 |
| 177 |
FMT(vdiph/oi) |
| 178 |
endphoneme |
| 179 |
|
| 180 |
|
| 181 |
phoneme E: |
| 182 |
vwl starttype #e endtype #e |
| 183 |
length 200 |
| 184 |
FMT(vowel/e_8) |
| 185 |
endphoneme |
| 186 |
|
| 187 |
|
| 188 |
phoneme e: |
| 189 |
vwl starttype #e endtype #e |
| 190 |
length 200 |
| 191 |
FMT(vowel/e_2) |
| 192 |
endphoneme |
| 193 |
|
| 194 |
|
| 195 |
phoneme o: |
| 196 |
vwl starttype #o endtype #o |
| 197 |
length 210 |
| 198 |
FMT(vowel/o) |
| 199 |
endphoneme |
| 200 |
|
| 201 |
|
| 202 |
phoneme y: |
| 203 |
vwl starttype #u endtype #u |
| 204 |
length 200 |
| 205 |
FMT(vowel/y) |
| 206 |
endphoneme |
| 207 |
|
| 208 |
|
| 209 |
phoneme y |
| 210 |
vwl starttype #u endtype #u |
| 211 |
ipa ʏ |
| 212 |
length 100 |
| 213 |
IF nextPh(*) THEN |
| 214 |
length 110 |
| 215 |
ENDIF |
| 216 |
FMT(vowel/yy_4) |
| 217 |
endphoneme |
| 218 |
|
| 219 |
|
| 220 |
phoneme Y: |
| 221 |
vwl starttype #@ endtype #u |
| 222 |
length 220 |
| 223 |
FMT(vwl_de/y#) |
| 224 |
endphoneme |
| 225 |
|
| 226 |
|
| 227 |
phoneme W |
| 228 |
vwl starttype #@ endtype #@ |
| 229 |
length 150 |
| 230 |
IF nextPh(*) THEN |
| 231 |
length 160 |
| 232 |
ENDIF |
| 233 |
FMT(vowel/oe) |
| 234 |
endphoneme |
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
// CONSONANTS |
| 239 |
//=========== |
| 240 |
|
| 241 |
phoneme t |
| 242 |
vls alv stp |
| 243 |
voicingswitch d |
| 244 |
lengthmod 2 |
| 245 |
Vowelin f1=0 f2=1700 -300 300 f3=-100 80 |
| 246 |
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20 |
| 247 |
|
| 248 |
IF nextPh(isPause2) THEN |
| 249 |
WAV(ustop/t_) |
| 250 |
ELIF nextPh(r) THEN |
| 251 |
WAV(ustop/t_) |
| 252 |
ELIF nextPh(@-) THEN |
| 253 |
WAV(ustop/t_dnt, 50) |
| 254 |
ENDIF |
| 255 |
WAV(ustop/t, 90) |
| 256 |
endphoneme |
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
phoneme ts |
| 261 |
import_phoneme consonants/ts |
| 262 |
endphoneme |
| 263 |
|
| 264 |
|
| 265 |
phoneme pF |
| 266 |
vls bld afr |
| 267 |
ipa pf |
| 268 |
Vowelout f1=0 f2=1000 -500 -350 f3=-200 80 |
| 269 |
lengthmod 2 |
| 270 |
WAV(ufric/f) // could replace this with a [pf] wav file |
| 271 |
endphoneme |
| 272 |
|
| 273 |
|
| 274 |
phoneme g# // for "ig" -> [IC] or [Ig] |
| 275 |
vls pal frc |
| 276 |
lengthmod 3 |
| 277 |
|
| 278 |
IF nextPhW(isVoiced) THEN |
| 279 |
ChangePhoneme(g) |
| 280 |
ELSE |
| 281 |
ChangePhoneme(C) |
| 282 |
ENDIF |
| 283 |
endphoneme |
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
phoneme l/ // used for [l] when not before a vowel |
| 288 |
liquid |
| 289 |
lengthmod 7 |
| 290 |
|
| 291 |
IF nextPh(isVowel) THEN |
| 292 |
ChangePhoneme(l) |
| 293 |
ENDIF |
| 294 |
|
| 295 |
PrevVowelEndings |
| 296 |
VowelEnding(l/L1_@L, -60) |
| 297 |
VowelEnding(l/L1_aL, -40) |
| 298 |
VowelEnding(l/L1_eL, -30) |
| 299 |
VowelEnding(l/L1_iL, -30) |
| 300 |
VowelEnding(l/L1_oL, -40) |
| 301 |
VowelEnding(l/L1_uL, -40) |
| 302 |
EndSwitch |
| 303 |
|
| 304 |
FMT(l/l_3) |
| 305 |
endphoneme |
| 306 |
|
| 307 |
|
| 308 |
phoneme j |
| 309 |
liquid pal |
| 310 |
lengthmod 7 |
| 311 |
|
| 312 |
IF nextPh(isVowel) THEN |
| 313 |
NextVowelStarts |
| 314 |
VowelStart(j/j@) |
| 315 |
VowelStart(j/ja) |
| 316 |
VowelStart(j/je) |
| 317 |
VowelStart(j/ji) |
| 318 |
VowelStart(j/jo) |
| 319 |
VowelStart(j/ju) |
| 320 |
EndSwitch |
| 321 |
|
| 322 |
VowelEnding(j/xj, -30) |
| 323 |
|
| 324 |
IF prevPh(isPause) THEN |
| 325 |
FMT(j/_j_short) // difference from base1/j |
| 326 |
ENDIF |
| 327 |
ELSE |
| 328 |
// no vowel follows |
| 329 |
Vowelout len=70 |
| 330 |
FMT(j/j_) |
| 331 |
ENDIF |
| 332 |
endphoneme |
| 333 |
|
| 334 |
|
| 335 |
phoneme r // note, following consonant must be 'ustop/t_' not 'ustop/tr' etc. |
| 336 |
liquid alv rhotic |
| 337 |
lengthmod 6 |
| 338 |
|
| 339 |
IF prevPhW(@-) THEN |
| 340 |
ELSE |
| 341 |
IF nextPhW(isVowel) THEN |
| 342 |
IF prevPhW(isVowel) THEN |
| 343 |
ChangePhoneme(R) |
| 344 |
ELSE |
| 345 |
IF prevPhW(t) THEN |
| 346 |
PauseBefore 30 |
| 347 |
ELSEIF prevPhW(d) OR prevPhW(b) OR prevPhW(g) OR prevPhW(k) OR prevPhW(p) THEN |
| 348 |
PauseBefore 15 |
| 349 |
ELSE |
| 350 |
FMT(r3/r_, 40) addWav(r3/rx, 150) |
| 351 |
ENDIF |
| 352 |
ENDIF |
| 353 |
ENDIF |
| 354 |
ENDIF |
| 355 |
|
| 356 |
IF prevPh(isFlag1) THEN |
| 357 |
ChangePhoneme(NULL) // 'r' is already included in the previous vowel |
| 358 |
ENDIF |
| 359 |
|
| 360 |
CALL base1/* |
| 361 |
endphoneme |
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
phoneme iR // TEST "vier" = [f'iR] not successful |
| 366 |
vwl starttype #i endtype #@ |
| 367 |
ipa iɐ |
| 368 |
flag1 |
| 369 |
length 240 |
| 370 |
FMT(vdiph2/i@_3) |
| 371 |
endphoneme |
| 372 |
|
| 373 |
|
| 374 |
phoneme UR |
| 375 |
vwl starttype #u endtype #@ |
| 376 |
ipa ʊɐ |
| 377 |
flag1 |
| 378 |
length 180 |
| 379 |
FMT(vwl_de/uu_@) |
| 380 |
endphoneme |
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
phoneme oU // for English words |
| 386 |
import_phoneme en-us/oU |
| 387 |
endphoneme |
| 388 |
|
| 389 |
phoneme A~ |
| 390 |
vwl starttype #a endtype #a |
| 391 |
length 260 |
| 392 |
FMT(vnasal/aa_n4) |
| 393 |
endphoneme |
| 394 |
|
| 395 |
|
| 396 |
phoneme W~ |
| 397 |
vwl starttype #@ endtype #@ |
| 398 |
length 200 |
| 399 |
FMT(vnasal/W_n) |
| 400 |
endphoneme |
| 401 |
|
| 402 |
|
| 403 |
phoneme l2 // as [l] but devoice previous phoneme |
| 404 |
liquid lengthmod 7 |
| 405 |
ChangePhoneme (l) |
| 406 |
endphoneme |
| 407 |
|
| 408 |
phoneme b |
| 409 |
vcd blb stp |
| 410 |
voicingswitch p |
| 411 |
IF nextPh(l2) OR nextPh(isPause) THEN |
| 412 |
ChangePhoneme(p) |
| 413 |
ENDIF |
| 414 |
CALL base1/b |
| 415 |
endphoneme |
| 416 |
|
| 417 |
phoneme d |
| 418 |
vcd alv stp |
| 419 |
voicingswitch t |
| 420 |
IF nextPh(l2) OR nextPh(isPause) THEN |
| 421 |
ChangePhoneme(t) |
| 422 |
ENDIF |
| 423 |
lengthmod 5 |
| 424 |
Vowelin f1=1 f2=1700 -300 300 f3=-100 80 |
| 425 |
Vowelout f1=2 f2=1700 -300 300 f3=-100 80 brk |
| 426 |
|
| 427 |
IF PreVoicing THEN |
| 428 |
FMT(d/xd) |
| 429 |
ENDIF |
| 430 |
|
| 431 |
IF nextPh(isPause2) THEN |
| 432 |
FMT(d/d_) addWav(x/d_) |
| 433 |
ELIF nextPh(r) THEN |
| 434 |
FMT(d/dr) addWav(x/d) |
| 435 |
ENDIF |
| 436 |
|
| 437 |
FMT(d/d) addWav(x/d) |
| 438 |
endphoneme |
| 439 |
|
| 440 |
phoneme g |
| 441 |
vcd vel stp |
| 442 |
voicingswitch k |
| 443 |
IF nextPh(l2) OR nextPh(isPause) THEN |
| 444 |
ChangePhoneme(k) |
| 445 |
ENDIF |
| 446 |
CALL base1/g |
| 447 |
endphoneme |
| 448 |
|
| 449 |
|
| 450 |
phoneme k |
| 451 |
vls vel stp |
| 452 |
voicingswitch g |
| 453 |
lengthmod 2 |
| 454 |
Vowelin f1=0 f2=2300 200 300 f3=-200 80 |
| 455 |
Vowelout f1=0 f2=2300 300 400 f3=-200 80 rms=20 |
| 456 |
|
| 457 |
IF KlattSynth THEN |
| 458 |
Vowelout f1=0 f2=2300 200 300 f3=-200 80 rms=20 |
| 459 |
ENDIF |
| 460 |
|
| 461 |
IF nextPh(isPause2) THEN |
| 462 |
WAV(ustop/k_) |
| 463 |
ELIF nextPh(r) THEN |
| 464 |
WAV(ustop/k, 70) |
| 465 |
ELIF nextPh(R) OR nextPh(R2) THEN |
| 466 |
WAV(ustop/k_) |
| 467 |
ELIF nextPh(i:) OR nextPh(j) OR nextPh(;) THEN |
| 468 |
WAV(ustop/ki) |
| 469 |
ELIF nextPh(l) THEN |
| 470 |
WAV(ustop/kl) |
| 471 |
ELIF nextPh(@-) THEN |
| 472 |
WAV(ustop/k, 70) |
| 473 |
ENDIF |
| 474 |
WAV(ustop/k) |
| 475 |
endphoneme |
| 476 |
|
| 477 |
phoneme v |
| 478 |
vcd lbd frc |
| 479 |
voicingswitch f |
| 480 |
IF nextPh(isPause) THEN |
| 481 |
ChangePhoneme(f) |
| 482 |
ENDIF |
| 483 |
CALL base1/v |
| 484 |
endphoneme |
| 485 |
|
| 486 |
phoneme z |
| 487 |
vcd alv frc sib |
| 488 |
voicingswitch s |
| 489 |
IF nextPh(isPause) THEN |
| 490 |
ChangePhoneme(s) |
| 491 |
ENDIF |
| 492 |
CALL base1/z |
| 493 |
endphoneme |
| 494 |
|
| 495 |
phoneme x |
| 496 |
vls vel frc |
| 497 |
voicingswitch Q |
| 498 |
lengthmod 3 |
| 499 |
Vowelin f1=0 f2=2300 200 400 f3=-100 80 |
| 500 |
Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20 |
| 501 |
|
| 502 |
IF nextPh(isPause) THEN |
| 503 |
WAV(ufric/x2, 60) |
| 504 |
ENDIF |
| 505 |
WAV(ufric/x_hr, 20) |
| 506 |
endphoneme |
| 507 |
|
| 508 |
|
| 509 |
phoneme O~ // saison, Pardon, Fond |
| 510 |
vwl starttype #o endtype #o |
| 511 |
length 190 |
| 512 |
FMT(vnasal/o_n5) |
| 513 |
endphoneme |