mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 14:04:27 +00:00
Merge tag '1.48.15' into android
espeak 1.48.15
This commit is contained in:
+4
-2
@@ -1200,6 +1200,7 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,
|
||||
If 'tonic' is set (>= 0), replace highest stress by this value.
|
||||
|
||||
control: bit 0 This is an individual symbol, not a word
|
||||
bit 1 Suffix phonemes are still to be added
|
||||
*/
|
||||
|
||||
unsigned char phcode;
|
||||
@@ -1586,11 +1587,12 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,
|
||||
break;
|
||||
}
|
||||
|
||||
if((stressflags & S_FINAL_VOWEL_UNSTRESSED) && (vowel_count > 2) && (max_stress_input < 3) && (vowel_stress[vowel_count - 1] == 4))
|
||||
if((stressflags & S_FINAL_VOWEL_UNSTRESSED) && ((control & 2) == 0) && (vowel_count > 2) && (max_stress_input < 3) && (vowel_stress[vowel_count - 1] == 4))
|
||||
{
|
||||
// Don't allow stress on a word-final vowel
|
||||
// Only do this if there is no suffix phonemes to be added, and if a stress position was not given explicitly
|
||||
if(phoneme_tab[final_ph]->type == phVOWEL)
|
||||
{
|
||||
// don't allow stress on a word-final vowel
|
||||
vowel_stress[vowel_count - 1] = 1;
|
||||
vowel_stress[vowel_count - 2] = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user