| 1 |
|
| 2 |
//==================================================== |
| 3 |
// Catalan valencian - based on Catalan (and Spanish and Base2) |
| 4 |
//==================================================== |
| 5 |
|
| 6 |
// vowels |
| 7 |
//============= |
| 8 |
|
| 9 |
phoneme a |
| 10 |
vwl starttype #a endtype #a |
| 11 |
length 180 |
| 12 |
IF thisPh(isWordEnd) AND thisPh(isUnstressed) THEN |
| 13 |
ChangePhoneme(E) |
| 14 |
ENDIF |
| 15 |
FMT(vowel/a_6) |
| 16 |
endphoneme |
| 17 |
|
| 18 |
phoneme a2 // does not change in central accent |
| 19 |
vwl starttype #a endtype #a |
| 20 |
length 180 |
| 21 |
FMT(vowel/a_6) |
| 22 |
endphoneme |
| 23 |
|
| 24 |
phoneme e |
| 25 |
vwl starttype #e endtype #e |
| 26 |
length 170 |
| 27 |
IF thisPh(isUnstressed) THEN |
| 28 |
IF thisPh(isWordStart) THEN |
| 29 |
IF nextPh(s) OR nextPh(n) OR nextPh(m) OR nextPh(**) OR nextPh(R) THEN |
| 30 |
ChangePhoneme(a) |
| 31 |
ELIF nextPh(j) AND next2Ph(S) THEN |
| 32 |
ChangePhoneme(a) |
| 33 |
ENDIF |
| 34 |
ENDIF |
| 35 |
ENDIF |
| 36 |
|
| 37 |
FMT(vowel/e) |
| 38 |
endphoneme |
| 39 |
|
| 40 |
phoneme e2 // don't reduce: "aeri", "aeròdrom". |
| 41 |
vwl starttype #e endtype #e |
| 42 |
length 170 |
| 43 |
FMT(vowel/e) |
| 44 |
endphoneme |
| 45 |
|
| 46 |
phoneme E |
| 47 |
vwl starttype #e endtype #e |
| 48 |
length 180 |
| 49 |
IF thisPh(isUnstressed) THEN |
| 50 |
IF thisPh(isWordStart) THEN |
| 51 |
IF nextPh(s) OR nextPh(n) OR nextPh(m) OR nextPh(**) OR nextPh(R) THEN |
| 52 |
ChangePhoneme(a) |
| 53 |
ELIF nextPh(j) AND next2Ph(S) THEN |
| 54 |
ChangePhoneme(a) |
| 55 |
ELSE |
| 56 |
ChangePhoneme(e) |
| 57 |
ENDIF |
| 58 |
ELSE |
| 59 |
ChangePhoneme(e) |
| 60 |
ENDIF |
| 61 |
ENDIF |
| 62 |
FMT(vowel/e_mid) |
| 63 |
endphoneme |
| 64 |
|
| 65 |
phoneme E2 // don't reduce |
| 66 |
vwl starttype #e endtype #e |
| 67 |
length 180 |
| 68 |
ChangeIfUnstressed(e2) |
| 69 |
FMT(vowel/e_mid) |
| 70 |
endphoneme |
| 71 |
|
| 72 |
phoneme O |
| 73 |
vwl starttype #o endtype #o |
| 74 |
length 170 |
| 75 |
IF thisPh(isUnstressed) THEN |
| 76 |
ChangePhoneme(o) |
| 77 |
ENDIF |
| 78 |
FMT(vowel/oo) |
| 79 |
endphoneme |
| 80 |
|
| 81 |
phoneme o |
| 82 |
vwl starttype #o endtype #o |
| 83 |
length 170 |
| 84 |
FMT(vowel/o) |
| 85 |
endphoneme |
| 86 |
|
| 87 |
phoneme o2 |
| 88 |
vwl starttype #o endtype #o |
| 89 |
length 170 |
| 90 |
ChangeIfStressed(o) |
| 91 |
FMT(vowel/o) |
| 92 |
endphoneme |
| 93 |
|
| 94 |
phoneme i |
| 95 |
vwl starttype #i endtype #i |
| 96 |
length 170 |
| 97 |
IF thisPh(isUnstressed) AND nextPh(isVowel) THEN |
| 98 |
ChangePhoneme(j) |
| 99 |
ENDIF |
| 100 |
FMT(vowel/i) |
| 101 |
endphoneme |
| 102 |
|
| 103 |
// affricates |
| 104 |
//================ |
| 105 |
|
| 106 |
phoneme Z |
| 107 |
vcd pla frc sib |
| 108 |
voicingswitch S |
| 109 |
lengthmod 6 |
| 110 |
Vowelin f1=0 f2=2000 0 300 f3=-200 80 |
| 111 |
Vowelout f1=2 f2=2000 0 300 f3=-200 80 brk |
| 112 |
IF thisPh(isWordStart) OR prevPh(isNotVowel) THEN |
| 113 |
IF prevPh(d) THEN |
| 114 |
ELSE |
| 115 |
ChangePhoneme(dZ) |
| 116 |
ENDIF |
| 117 |
ENDIF |
| 118 |
endphoneme |
| 119 |
|
| 120 |
phoneme S |
| 121 |
vls pla frc sib |
| 122 |
voicingswitch Z |
| 123 |
lengthmod 3 |
| 124 |
Vowelin f1=0 f2=2100 100 300 f3=-100 80 |
| 125 |
Vowelout f1=0 f2=2100 100 300 f3=-100 80 |
| 126 |
IF thisPh(isWordStart) THEN // initial or post-consonant position |
| 127 |
ChangePhoneme(tS) |
| 128 |
ELIF prevPh(isNotVowel) THEN |
| 129 |
IF prevPh(j) THEN |
| 130 |
IF thisPh(isWordEnd) AND nextPh(isVoiced) THEN |
| 131 |
ChangePhoneme(Z) |
| 132 |
ENDIF |
| 133 |
ELSE |
| 134 |
ChangePhoneme(tS) |
| 135 |
ENDIF |
| 136 |
ENDIF |
| 137 |
WAV(ufric/sh) |
| 138 |
endphoneme |
| 139 |
|
| 140 |
phoneme v |
| 141 |
vcd lbd frc |
| 142 |
voicingswitch f |
| 143 |
lengthmod 6 |
| 144 |
Vowelin f1=0 f2=1000 -300 -200 f3=-300 100 |
| 145 |
Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50 |
| 146 |
IF KlattSynth THEN |
| 147 |
Vowelout f1=1 f2=1000 -500 -300 f3=-300 60 len=50 brk |
| 148 |
IF nextPh(isPause2) THEN |
| 149 |
FMT(klatt/v_) addWav(vocw/v) |
| 150 |
ENDIF |
| 151 |
FMT(klatt/v) addWav(vocw/v, 150) |
| 152 |
ENDIF |
| 153 |
IF nextPh(isPause2) THEN |
| 154 |
FMT(voc/v_) addWav(vocw/v) |
| 155 |
ENDIF |
| 156 |
IF thisPh(isWordStart) AND nextPhW(isLiquid) THEN |
| 157 |
length 70 |
| 158 |
ENDIF |
| 159 |
FMT(voc/v) addWav(vocw/v) |
| 160 |
endphoneme |