mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.39.11]
Fix problem in *_rules files. Conditional rules could cause corrupt phoneme strings. Voice files, "replace" command using an "unstressed" phoneme now ensures the syllable is unstressed. lang: us, pronunciation changes, use new phonemeeeeeeeee [@/] (at end of words) and [O]. lang: fr, pronunciation changes. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@197 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+5
-3
@@ -1832,9 +1832,11 @@ void Translator::MatchRule(char *word[], const char *group, char *rule, MatchRec
|
||||
if(common_phonemes != NULL)
|
||||
{
|
||||
match.phonemes = common_phonemes;
|
||||
if(*match.phonemes == RULE_CONDITION)
|
||||
match.phonemes += 2; // skip over condition number
|
||||
while(((rb = *match.phonemes++) != 0) && (rb != RULE_PHONEMES));
|
||||
while(((rb = *match.phonemes++) != 0) && (rb != RULE_PHONEMES))
|
||||
{
|
||||
if(rb == RULE_CONDITION)
|
||||
match.phonemes++; // skip over condition number
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user