mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
[1.45.27]
Lang=hi, Suppress some [@] vowels. Include batch of changes from Jerouris. Fix crash with large number of nbsp characters. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@266 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+44
-18
@@ -9,8 +9,9 @@ phoneme : // Lengthen the previous vowel by "length"
|
||||
endphoneme
|
||||
|
||||
phoneme @
|
||||
vowel starttype #@ endtype #@
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 130
|
||||
|
||||
ChangeIfDiminished(@-)
|
||||
IF nextPh(H) THEN
|
||||
FMT(vowel/@_low)
|
||||
@@ -18,41 +19,66 @@ phoneme @
|
||||
FMT(vowel/@_bck)
|
||||
endphoneme
|
||||
|
||||
phoneme @/
|
||||
vowel starttype #@ endtype #@
|
||||
length 130
|
||||
FMT(vowel/@_bck)
|
||||
endphoneme
|
||||
|
||||
phoneme V
|
||||
vowel starttype #@ endtype #@
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 130
|
||||
ChangeIfNotStressed(@)
|
||||
IF nextPh(H) THEN
|
||||
FMT(vowel/@_low)
|
||||
|
||||
IF thisPh(isNotStressed) THEN
|
||||
IF prevPh(H) THEN
|
||||
ChangePhoneme(@)
|
||||
ENDIF
|
||||
|
||||
IF thisPh(isWordEnd) THEN
|
||||
ChangePhoneme(NULL)
|
||||
ENDIF
|
||||
|
||||
IF nextVowel(isFlag1) THEN
|
||||
ELSE
|
||||
IF thisPh(isSeqFlag1) THEN
|
||||
// delete the last inherent vowel of a sequence
|
||||
ChangePhoneme(NULL)
|
||||
ELSE
|
||||
IF thisPh(isFirstVowel) THEN
|
||||
ELSE
|
||||
// delete if not the first vowel, and is an isolated 'a'
|
||||
ChangePhoneme(NULL)
|
||||
ENDIF
|
||||
ENDIF
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
IF prevPh(isPalatal) THEN
|
||||
ChangePhoneme(@3)
|
||||
ELSEIF prevPh(r) THEN
|
||||
ChangePhoneme(@2)
|
||||
ELSE
|
||||
IF thisPh(isNotStressed) THEN
|
||||
ChangePhoneme(@)
|
||||
ENDIF
|
||||
|
||||
IF nextPh(H) THEN
|
||||
FMT(vowel/@_low)
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
FMT(vowel/V_3)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme @2
|
||||
vowel starttype #@ endtype #@
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 130
|
||||
FMT(vowel/@_low)
|
||||
endphoneme
|
||||
|
||||
phoneme @3
|
||||
vowel starttype #@ endtype #@
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 130
|
||||
ChangeIfDiminished(@-)
|
||||
FMT(vowel/@_3)
|
||||
endphoneme
|
||||
|
||||
phoneme @4
|
||||
vowel starttype #@ endtype #@
|
||||
length 130
|
||||
FMT(vowel/@)
|
||||
endphoneme
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user