mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 06:32:20 +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:
@@ -152,6 +152,8 @@ int Translator::SubstitutePhonemes(PHONEME_LIST2 *plist_out)
|
||||
|
||||
// substitute the replacement phoneme
|
||||
plist2->phcode = replace_phonemes[k].new_ph;
|
||||
if((plist2->stress > 1) && (phoneme_tab[plist2->phcode]->phflags & phUNSTRESSED))
|
||||
plist2->stress = 0; // the replacement must be unstressed
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user