mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-18 02:48:42 +00:00
compiledata: ensure that voicingswitch is not used with vowels.
This commit is contained in:
@@ -2160,7 +2160,10 @@ int CompilePhoneme(int compile_phoneme)
|
||||
phcode = NextItem(tPHONEMEMNEM);
|
||||
if (phcode == -1)
|
||||
phcode = LookupPhoneme(item_string, 1);
|
||||
phoneme_out->end_type = phcode; // use end_type field for consonants as voicing_switch
|
||||
if (phoneme_out->type == phVOWEL)
|
||||
error("voicingswitch cannot be used on vowels");
|
||||
else
|
||||
phoneme_out->end_type = phcode; // use end_type field for consonants as voicing_switch
|
||||
break;
|
||||
case kSTRESSTYPE:
|
||||
value = NextItem(tNUMBER);
|
||||
|
||||
Reference in New Issue
Block a user