Debian Codegraph @

phsource/ph_spanish

raw
1
2 //====================================================
3 // Spanish - based on Base2
4 //====================================================
5
6
7 phoneme a
8 vowel starttype #a endtype #a
9 length 200
10 FMT(vowel/a_4)
11 endphoneme
12
13 phoneme e
14 vowel starttype #e endtype #e
15 length 200
16 FMT(vowel/e_mid2)
17 endphoneme
18
19 phoneme E
20 vowel starttype #e endtype #e
21 length 200
22 FMT(vowel/e_mid2)
23 endphoneme
24
25 phoneme i
26 vowel starttype #i endtype #i
27 length 190
28 IfNextVowelAppend(;)
29 FMT(vowel/i)
30 endphoneme
31
32 phoneme o
33 vowel starttype #o endtype #o
34 length 200
35 FMT(vowel/oo)
36 endphoneme
37
38 phoneme O
39 vowel starttype #o endtype #o
40 length 200
41 FMT(vowel/oo)
42 endphoneme
43
44 phoneme u
45 vowel starttype #u endtype #u
46 length 200
47 FMT(vowel/u_bck2)
48 endphoneme
49
50
51
52
53 phoneme g
54 vcd vel stop
55 lengthmod 5
56 voicingswitch k
57 Vowelin f1=2 f2=2300 200 300 f3=-300 80
58 Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
59
60 IF nextPh(isVowel) OR nextPh(isRhotic) OR nextPh(isLiquid) THEN
61 IF prevPh(isPause) OR prevPh(isNasal) THEN
62 ELSE
63 ChangePhoneme(Q)
64 ENDIF
65 ENDIF
66
67 IF PreVoicing THEN
68 FMT(g/xg)
69 ENDIF
70
71 IF nextPh(isPause2) THEN
72 FMT(g/g_) addWav(x/g_)
73 ENDIF
74 FMT(g/g) addWav(x/g2) // weaker [g]
75 endphoneme
76
77 phoneme d
78 vcd dnt stop
79
80 IF nextPh(isVowel) OR nextPh(isRhotic) OR nextPh(j) THEN
81 IF prevPh(isPause) OR prevPh(isNasal) OR prevPh(l) THEN
82 ELSE
83 ChangePhoneme(D)
84 ENDIF
85 ENDIF
86
87 CALL base2/d
88 endphoneme
89
90 phoneme b
91 vcd blb stop
92
93 IF nextPh(isVowel) OR nextPh(isRhotic) OR nextPh(isLiquid) THEN
94 IF prevPh(isPause) OR prevPh(isNasal) THEN
95 ELSE
96 ChangePhoneme(B)
97 ENDIF
98 ENDIF
99
100 CALL base/b
101 endphoneme
102
103
104 phoneme D
105 vcd dnt frc
106 lengthmod 6
107 voicingswitch T
108 CALL base/D
109 IF nextPh(isPause2) THEN
110 FMT(voc/dh_) addWav(vocw/dh, 35) // weaker
111 ENDIF
112 endphoneme
113
114
115 phoneme s
116 vls alv frc sibilant
117 lengthmod 3
118 voicingswitch z
119 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
120 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
121
122 IF nextPh(isPause) THEN
123 WAV(ufric/s_, 60) // quieter 's' at end of word
124 ELIF nextPh(p) OR nextPh(t) OR nextPh(k) THEN
125 WAV(ufric/s!)
126 ENDIF
127 WAV(ufric/s, 80)
128 endphoneme
129
130
131 phoneme v# // a shorter [v], a little towards [b]
132 vcd lbd frc
133 ipa ʋ
134 lengthmod 6
135 voicingswitch f
136 Vowelin f1=1 f2=1000 -300 -200 f3=-300 100
137 Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=10
138
139 IF nextPh(isPause2) THEN
140 FMT(voc/v_) addWav(vocw/v, 80)
141 ENDIF
142 FMT(voc/v2) addWav(vocw/v, 80)
143 endphoneme
144
145
146 phoneme r
147 vcd alv flp rhotic
148 brkafter
149 ipa ɾ
150 lengthmod 3
151
152 IF nextPhW(isVowel) THEN
153 ChangePhoneme(**)
154 ENDIF
155
156 CALL base/*
157 endphoneme
158
159