Debian Codegraph @

phsource/ph_bengali

raw
1
2 //====================================================
3 // Bengali, inherits from Hindi
4 //====================================================
5
6
7 phoneme V // inherent vowel, can be [O] or [o]
8 vowel flag1 starttype #o endtype #o
9 length 200
10
11 IF thisPh(isWordEnd) AND prevPhW(isNotVowel) AND prev2PhW(isVowel) THEN
12 ChangePhoneme(NULL)
13 ENDIF
14
15 IF thisPh(isFirstVowel) THEN
16 IF nextVowel(i) OR nextVowel(u) THEN
17 ChangePhoneme(o)
18 ENDIF
19
20 IF prevPhW(r) AND nextVowel(isVowel) THEN
21 IF nextVowel(isWordEnd) AND nextVowel(V) THEN
22 ELSE
23 ChangePhoneme(o)
24 ENDIF
25 ENDIF
26 ENDIF
27
28 ChangePhoneme(O)
29 endphoneme
30
31
32 phoneme a
33 vowel starttype #a endtype #a
34 length 225
35 IF thisPh(isWordEnd) AND thisPh(isUnstressed) THEN
36 FMT(vowel/a#_2)
37 ENDIF
38 FMT(vowel/a_3)
39 endphoneme
40
41
42 phoneme i
43 vowel starttype #i endtype #i
44 length 210
45 FMT(vowel/i_6)
46 endphoneme
47
48
49 phoneme u
50 vowel starttype #u endtype #u
51 length 210
52 FMT(vowel/u)
53 endphoneme
54
55
56 phoneme e
57 vowel starttype #e endtype #e
58 length 210
59 FMT(vowel/e)
60 endphoneme
61
62
63 phoneme &
64 vowel starttype #a endtype #a
65 length 210
66 FMT(vowel/&_2)
67 endphoneme
68
69
70 phoneme o
71 vowel starttype #o endtype #o
72 length 210
73 IF nextPhW(w) THEN
74 length 170
75 ENDIF
76 FMT(vowel/o)
77 endphoneme
78
79
80 phoneme O
81 vowel starttype #o endtype #o
82 length 200
83 FMT(vowel/oo_5)
84 endphoneme
85
86
87 phoneme tS
88 vls pla afr sibilant
89 voicingswitch dZ
90 lengthmod 2
91 Vowelin f1=0 f2=2300 200 400 f3=-100 80
92
93 IF nextPh(isPause2) THEN
94 WAV(ustop/tsh_unasp2)
95 ENDIF
96 WAV(ustop/tsh_unasp2)
97 endphoneme
98
99
100 phoneme tS#
101 vls pla afr sibilant
102 voicingswitch dZ
103 lengthmod 2
104 Vowelin f1=0 f2=2300 200 400 f3=-100 80
105
106 IF nextPh(isPause2) THEN
107 WAV(ustop/tsh_)
108 ENDIF
109 WAV(ustop/tsh)
110 endphoneme
111
112
113
114
115
116
117 phoneme ~
118 virtual
119 endphoneme
120