mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.31.06]
espeakEVENT_PHONEME, fix audio position of vowel when it follows a voiced consonant. Ensure enough space in the event list when espeak_Initialize() is called with a small buffer size. Tone languages: set the final stressed syllable to stress=7 so that it can be longer. lang=zh: adjust vowels git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@136 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+11
-3
@@ -759,8 +759,14 @@ void Translator::CalcPitches_Tone(int clause_tone)
|
||||
{
|
||||
if((p->type == phVOWEL) && (p->tone >= 4))
|
||||
{
|
||||
final_stressed = ix;
|
||||
count_stressed++;
|
||||
if(count_stressed == 0)
|
||||
final_stressed = ix;
|
||||
|
||||
if(p->tone >= 4)
|
||||
{
|
||||
final_stressed = ix;
|
||||
count_stressed++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -769,7 +775,6 @@ void Translator::CalcPitches_Tone(int clause_tone)
|
||||
{
|
||||
// LANG=vi
|
||||
p = &phoneme_list[final_stressed];
|
||||
p->tone = 7;
|
||||
if(p->tone_ph == 0)
|
||||
p->tone_ph = LookupPh("7"); // change tone 1 to falling tone at end of clause
|
||||
}
|
||||
@@ -889,6 +894,9 @@ void Translator::CalcPitches_Tone(int clause_tone)
|
||||
p->pitch2 = pitch_adjust + phoneme_tab[tone_ph]->end_type;
|
||||
}
|
||||
}
|
||||
|
||||
phoneme_list[final_stressed].tone = 7;
|
||||
|
||||
} // end of Translator::CalcPitches_Tone
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user