mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-17 18:40:50 +00:00
vi: modify length for phoneme e relatively to final consonants
This commit is contained in:
+23
-4
@@ -110,13 +110,32 @@ endphoneme
|
||||
|
||||
phoneme e
|
||||
vwl starttype #e endtype #e
|
||||
IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
|
||||
IF nextPhW(p) THEN
|
||||
length 114
|
||||
ELIF nextPhW(t) THEN
|
||||
length 126
|
||||
ELIF nextPhW(c) THEN
|
||||
length 140
|
||||
ELIF nextPhW(n^) THEN
|
||||
length 120
|
||||
ELIF nextPhW(m) THEN
|
||||
length 148
|
||||
ELIF nextPhW(n) THEN
|
||||
length 163
|
||||
ELIF nextPhW(N) THEN
|
||||
length 115
|
||||
ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
|
||||
length 240
|
||||
ELSE
|
||||
ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
|
||||
length 240
|
||||
ELSE
|
||||
length 180
|
||||
ENDIF
|
||||
// FMT(vowel/e)
|
||||
ENDIF
|
||||
IF nextPh(n^) THEN
|
||||
FMT(vowel/e)
|
||||
ELSE
|
||||
FMT(vietnam/e)
|
||||
ENDIF
|
||||
endphoneme
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user