Debian Codegraph @

phsource/ph_catalan_va

raw
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 FMT(vowel/a_6)
13 endphoneme
14
15 phoneme a2 // does not change in central accent
16 vwl starttype #a endtype #a
17 length 180
18 FMT(vowel/a_6)
19 endphoneme
20
21 phoneme e
22 vwl starttype #e endtype #e
23 length 170
24 IF thisPh(isUnstressed) THEN
25 IF thisPh(isWordStart) THEN
26 IF nextPh(s) OR nextPh(n) OR nextPh(m) OR nextPh(**) OR nextPh(R) THEN
27 ChangePhoneme(a)
28 ELIF nextPh(j) AND next2Ph(S) THEN
29 ChangePhoneme(a)
30 ENDIF
31 ENDIF
32 ENDIF
33 FMT(vowel/e)
34 endphoneme
35
36 phoneme e2 // don't reduce
37 vwl starttype #e endtype #e
38 length 170
39 FMT(vowel/e)
40 endphoneme
41
42 phoneme E
43 vwl starttype #e endtype #e
44 length 180
45 IF thisPh(isUnstressed) THEN
46 IF thisPh(isWordStart) THEN
47 IF nextPh(s) OR nextPh(n) OR nextPh(m) OR nextPh(**) OR nextPh(R) THEN
48 ChangePhoneme(a)
49 ELIF nextPh(j) AND next2Ph(S) THEN
50 ChangePhoneme(a)
51 ELSE
52 ChangePhoneme(e)
53 ENDIF
54 ELSE
55 ChangePhoneme(e)
56 ENDIF
57 ENDIF
58 FMT(vowel/e_mid)
59 endphoneme
60
61 phoneme E2 // don't reduce
62 vwl starttype #e endtype #e
63 length 180
64 ChangeIfUnstressed(e2)
65 FMT(vowel/e_mid)
66 endphoneme
67
68 phoneme O
69 vwl starttype #o endtype #o
70 length 170
71 ChangeIfUnstressed(o)
72 FMT(vowel/oo)
73 endphoneme
74
75 phoneme o2
76 vwl starttype #o endtype #o
77 length 170
78 ChangeIfStressed(O)
79 FMT(vowel/o)
80 endphoneme
81
82 phoneme o
83 vwl starttype #o endtype #o
84 length 170
85 FMT(vowel/o)
86 endphoneme
87
88 phoneme u
89 vwl starttype #u endtype #u
90 length 160
91 IF thisPh(isUnstressed) THEN
92 IF thisPh(isWordEnd) THEN
93 IF nextPh(isVowel) THEN
94 IF nextPh(u) OR nextPh(w) THEN
95 ELSE
96 ChangePhoneme(w)
97 ENDIF
98 ENDIF
99 ELIF thisPh(isWordStart) THEN
100 IF prevPh(isVowel) THEN
101 ChangePhoneme(w)
102 ENDIF
103 ENDIF
104 ENDIF
105 FMT(vowel/u_bck)
106 endphoneme
107
108 phoneme i
109 vwl starttype #i endtype #i
110 length 170
111 IF thisPh(isUnstressed) AND nextPh(isVowel) THEN
112 ChangePhoneme(j)
113 ENDIF
114 FMT(vowel/i)
115 endphoneme
116
117 // nasals
118 //==============
119
120 phoneme n
121 vcd alv nas
122 Vowelout f1=2 f2=1500 -300 250 f3=-100 80 rms=20 brk
123 lengthmod 4
124
125 IF KlattSynth THEN
126 Vowelin f1=0 f2=1500 -200 200 f3=0 80
127 FMT(klatt/n)
128 ENDIF
129
130 NextVowelStarts
131 VowelStart(n/n@)
132 VowelStart(n/na)
133 VowelStart(n/ne)
134 VowelStart(n/ni)
135 VowelStart(n/no)
136 VowelStart(n/nu)
137 EndSwitch
138
139 IF nextPh(f) OR nextPh(v) THEN
140 ChangePhoneme(M)
141 ELIF nextPh(k) OR nextPh(g) THEN
142 ChangePhoneme(N)
143 ELIF nextPh(p) OR nextPh(b) OR nextPh(m) THEN
144 ChangePhoneme(m)
145 ENDIF
146
147 IF prevPh(isNotVowel) AND nextPhW(isLiquid) THEN
148 FMT(n/nj)
149 ELIF prevPh(isPause) OR prevPh(n) THEN
150 FMT(n/_n)
151 ELIF nextPh(isNotVowel) THEN
152 FMT(n/n_)
153 ENDIF
154 endphoneme
155
156 // R
157 //=====================
158 phoneme R
159 liquid trl
160 lengthmod 6
161 ipa r
162 IF thisPh(isWordEnd) THEN
163 ChangePhoneme(**)
164 ENDIF
165 Vowelin f1=0 f2=1600 -300 300 f3=-200 80
166 Vowelout f1=2 f2=1600 -300 300 f3=-200 80 brk
167 FMT(r3/r_trill2) addWav(r3/r_trill2.wav, 65)
168 endphoneme
169
170 // affricates
171 //================
172
173 phoneme Z
174 vcd pla frc sib
175 voicingswitch S
176 lengthmod 6
177 Vowelin f1=0 f2=2000 0 300 f3=-200 80
178 Vowelout f1=2 f2=2000 0 300 f3=-200 80 brk
179 ChangePhoneme(dZ)
180 endphoneme
181
182 phoneme S
183 vls pla frc sib
184 voicingswitch Z
185 lengthmod 3
186 Vowelin f1=0 f2=2100 100 300 f3=-100 80
187 Vowelout f1=0 f2=2100 100 300 f3=-100 80
188 IF prevPh(i) OR prevPh(j) THEN
189 IF thisPh(isWordEnd) AND nextPh(isVoiced) THEN
190 ChangePhoneme(Z)
191 ENDIF
192 ELSE
193 ChangePhoneme(tS)
194 ENDIF
195 WAV(ufric/sh)
196 endphoneme
197
198
199 phoneme v
200 vcd lbd frc
201 voicingswitch f
202 lengthmod 6
203 Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
204 Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
205
206 IF KlattSynth THEN
207 Vowelout f1=1 f2=1000 -500 -300 f3=-300 60 len=50 brk
208 IF nextPh(isPause2) THEN
209 FMT(klatt/v_) addWav(vocw/v)
210 ENDIF
211 FMT(klatt/v) addWav(vocw/v, 150)
212 ENDIF
213
214 IF nextPh(isPause2) THEN
215 FMT(voc/v_) addWav(vocw/v)
216 ENDIF
217 IF thisPh(isWordStart) AND nextPhW(isLiquid) THEN
218 length 70
219 ENDIF
220 FMT(voc/v) addWav(vocw/v)
221 endphoneme
222
223 // Occlusive stops
224 //=================
225
226 phoneme b
227 vcd blb stp
228 IF thisPh(isWordEnd) THEN
229 IF nextPh(isVoiced) AND nextPh(isNotVowel) THEN
230 ELIF prevPh(m) THEN
231 ELSE
232 ChangePhoneme(p)
233 ENDIF
234 ELIF nextPh(s) AND nextPh(isWordEnd) AND next2Ph(isVoiced) THEN // keep sonority
235 ELIF nextPh(isVoiced) THEN
236 IF nextPh(isVowel) OR nextPh(isRhotic) OR nextPh(l) OR nextPh(j) OR nextPh(w) THEN
237 IF prevPh(isVowel) OR prevPh(isLiquid) OR prevPh(isVFricative) THEN
238 IF prevPh(**) OR prevPh(R) THEN //***"embarbussa"***
239 ELSE
240 ChangePhoneme(B)
241 ENDIF
242 ENDIF
243 ENDIF
244 ELSE
245 ChangePhoneme(p)
246 ENDIF
247
248 CALL base1/b
249 endphoneme
250
251 phoneme g
252 vcd vel stp
253 lengthmod 5
254 voicingswitch k
255 Vowelin f1=2 f2=2300 200 300 f3=-300 80
256 Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
257 IF thisPh(isWordEnd) THEN
258 IF nextPh(isVoiced) AND nextPh(isNotVowel) THEN
259 ELSE
260 ChangePhoneme(k)
261 ENDIF
262 ELIF nextPh(s) AND nextPh(isWordEnd) AND next2Ph(isVoiced) THEN // keep sonority
263 ELIF nextPh(isVoiced) THEN
264 IF nextPh(isVowel) OR nextPh(isRhotic) OR nextPh(l) OR nextPh(j) OR nextPh(w) THEN
265 IF prevPh(isVowel) OR prevPh(isLiquid) OR prevPh(isVFricative) THEN
266 ChangePhoneme(Q)
267 ENDIF
268 ELIF nextPh(n) THEN
269 ChangePhoneme(N)
270 ENDIF
271 ELSE
272 ChangePhoneme(k)
273 ENDIF
274 IF PreVoicing THEN
275 FMT(g/xg)
276 ENDIF
277 IF nextPh(isPause2) THEN
278 FMT(g/g_) addWav(x/g_)
279 ENDIF
280 FMT(g/g) addWav(x/g2)
281 endphoneme
282