Debian Codegraph @

phsource/ph_malayalam

raw
1
2 // Phonemes for Malayalam
3 // This inherits from ph_hindi
4
5
6 phoneme @
7 vwl starttype #@ endtype #@
8 length 130
9 FMT(vowel/@_low)
10 endphoneme
11
12
13 phoneme y // epenthetic vowel
14 vwl starttype #@ endtype #@
15 unstressed
16 ipa ɨ
17 length 80
18 FMT(vowel/u#_4, 120)
19 endphoneme
20
21
22 phoneme a
23 vwl starttype #a endtype #a
24 ipa ɐ
25 length 130
26
27 IF thisPh(isStressed) OR thisPh(isFirstVowel) OR thisPh(isWordEnd) THEN
28 FMT(vowel/a#_4)
29 ELSE
30 ChangeIfUnstressed(@)
31
32 IF nextPh(m) AND nextPh(isWordEnd) THEN
33 ChangePhoneme(@)
34 ENDIF
35
36 FMT(vowel/a#_3)
37 ENDIF
38 endphoneme
39
40
41 phoneme a# // don't reduce to [@]
42 vwl starttype #a endtype #a
43 ChangePhoneme(a)
44 endphoneme
45
46
47 phoneme a:
48 vwl lng starttype #a endtype #a
49 length 300
50 FMT(vowel/a_5)
51 endphoneme
52
53
54 phoneme e
55 vwl starttype #e endtype #e
56 length 130
57 FMT(vowel/e)
58 endphoneme
59
60
61 phoneme e:
62 vwl lng starttype #e endtype #e
63 length 270
64 FMT(vowel/e)
65 endphoneme
66
67
68 phoneme i
69 vwl starttype #i endtype #i
70 length 130
71 FMT(vowel/i_6)
72 endphoneme
73
74 phoneme I
75 vwl starttype #i endtype #i
76 length 130
77 FMT(vowel/ii)
78 endphoneme
79
80
81 phoneme i:
82 vwl lng starttype #i endtype #i
83 length 270
84 FMT(vowel/i)
85 endphoneme
86
87
88
89 phoneme o
90 vwl starttype #o endtype #o
91 length 130
92 FMT(vowel/o)
93 endphoneme
94
95
96 phoneme o:
97 vwl lng starttype #o endtype #o
98 length 300
99 FMT(vowel/o)
100 endphoneme
101
102
103 phoneme u
104 vwl starttype #u endtype #u
105 length 110
106 FMT(vowel/u)
107 endphoneme
108
109 phoneme u:
110 vwl lng starttype #u endtype #u
111 length 280
112 FMT(vowel/u)
113 endphoneme
114
115
116 phoneme aI
117 vwl lng starttype #a endtype #i
118 length 280
119 FMT(vdiph/ai)
120 endphoneme
121
122 phoneme aU
123 vwl lng starttype #a endtype #u
124 length 270
125 FMT(vdiph/aau_3)
126 endphoneme
127
128
129 // ?? This is standard [v]. Should be it [v] without the fricative noise?
130 phoneme v
131 import_phoneme base1/v
132 endphoneme
133
134 phoneme r
135 import_phoneme base1/**
136 endphoneme
137
138 phoneme R
139 import_phoneme base1/R2
140 endphoneme
141
142 phoneme d2 // 'rr' sounds like English 'd'
143 import_phoneme base1/d
144 endphoneme
145
146
147 // Aspirated voice stops, sound like aspirated unvoiced stops ?
148
149 phoneme b#
150 vls blb stp prevoice
151 lengthmod 2
152 voicingswitch b
153 Vowelin f1=0 f2=1000 -50 -100 f3=-200 80
154 Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=30
155
156 IF PreVoicing THEN
157 IF prevPhW(isVowel) THEN
158 FMT(b/xb)
159 ELSE
160 FMT(voc/murmur1)
161 ENDIF
162 ENDIF
163
164 IF nextPh(isPause2) THEN
165 WAV(ustop/p_)
166 ENDIF
167 IF nextPh(l) THEN
168 WAV(ustop/pl)
169 ENDIF
170 WAV(ustop/p_asp)
171 endphoneme
172
173
174 phoneme d#
175 vls dnt stp prevoice
176 lengthmod 2
177 voicingswitch d
178 Vowelin f1=0 f2=1500 -300 300 f3=-100 80 amp=16
179 Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20
180
181 IF PreVoicing THEN
182 IF prevPhW(isVowel) THEN
183 FMT(d/xd)
184 ELSE
185 FMT(voc/murmur1)
186 ENDIF
187 ENDIF
188
189 IF nextPh(isPause2) THEN
190 WAV(ustop/t_dnt, 35)
191 ENDIF
192 WAV(ustop/t_dnt, 50)
193 endphoneme
194
195
196 phoneme t.#
197 vls rfx stp
198 lengthmod 2
199 ipa ʈU+02B0
200 voicingswitch d.#
201 Vowelin f1=0 f2=1800 -300 300 f3=-200 80
202 Vowelout f1=0 f2=1800 -300 250 f3=-400 80 rms=20 colr=2
203
204 IF nextPhW(t.#) THEN
205 ChangePhoneme(t.)
206 ENDIF
207 WAV(ustop/th_rfx2, 80)
208 endphoneme
209
210
211 phoneme d.#
212 vls rfx stp prevoice
213 lengthmod 2
214 ipa ʈU+02B0
215 Vowelin f1=0 f2=1800 -300 300 f3=-200 80
216 Vowelout f1=0 f2=1800 -300 250 f3=-400 80 rms=20 colr=2
217
218 IF PreVoicing THEN
219 IF prevPhW(isVowel) THEN
220 FMT(d/xdr)
221 ELSE
222 FMT(voc/murmur1)
223 ENDIF
224 ENDIF
225
226 voicingswitch d.#
227 WAV(ustop/th_rfx2, 80)
228 endphoneme
229
230
231 phoneme J#
232 vls pal afr sib pzd prevoice
233 voicingswitch c#
234 lengthmod 2
235 Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70
236
237 IF PreVoicing THEN
238 IF prevPhW(isVowel) THEN
239 FMT(dzh/xdz_pzd)
240 ELSE
241 FMT(voc/murmur1)
242 ENDIF
243 ENDIF
244
245 IF nextPh(isPause2) THEN
246 WAV(ustop/ts_pzd)
247 ENDIF
248 WAV(ustop/ts_pzd)
249 endphoneme
250
251
252 phoneme g#
253 vls vel stp prevoice
254 lengthmod 2
255 Vowelin f1=1 f2=1400 -100 100 f3=-150 80
256 Vowelout f1=0 f2=2300 300 400 f3=-150 80 rms=20
257
258 IF PreVoicing THEN
259 IF prevPhW(isVowel) THEN
260 FMT(g/xg)
261 ELSE
262 FMT(voc/murmur1)
263 ENDIF
264 ENDIF
265
266
267 IF nextPh(isPause2) THEN
268 WAV(ustop/k_asp, 40)
269 ENDIF
270 IF nextPhW(#e) OR nextPhW(#i) THEN
271 WAV(ustop/k_asp_e, 40)
272 ELIF nextPhW(#o) OR nextPhW(#u) THEN
273 WAV(ustop/k_asp_a, 25)
274 ELSE
275 WAV(ustop/k_asp_a, 30)
276 ENDIF
277 endphoneme
278
279
280
281 // suggested by Prasenjit Sen, but perhaps not needed?
282 // ml_rules changes [p], [t], [k] to [b], [d], [g] in non-initial
283 // positions
284
285 phoneme p
286 import_phoneme consonants/p-
287 voicingswitch b
288
289 IF thisPh(isWordStart) THEN
290 CALL base1/p
291 ELIF thisPh(isWordEnd) AND NOT thisPh(isFirstVowel) THEN
292 ChangePhoneme(b)
293 ENDIF
294 endphoneme
295
296
297 phoneme t
298 import_phoneme base1/t[
299 voicingswitch d
300
301 IF thisPh(isWordStart) THEN
302 CALL base1/t
303 ELIF thisPh(isWordEnd) AND NOT thisPh(isFirstVowel) THEN
304 ChangePhoneme(d)
305 ENDIF
306 endphoneme
307
308
309 phoneme k
310 import_phoneme consonants/k-
311 voicingswitch g
312
313 IF thisPh(isWordStart) THEN
314 CALL base1/k
315 ELIF thisPh(isWordEnd) AND NOT thisPh(isFirstVowel) THEN
316 ChangePhoneme(g)
317 ENDIF
318 endphoneme
319
320