Browse Source

compiledata: ensure that voicingswitch is not used with vowels.

master
Reece H. Dunn 8 years ago
parent
commit
0ee9c84fe3
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/libespeak-ng/compiledata.c

+ 4
- 1
src/libespeak-ng/compiledata.c View File

@@ -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);

Loading…
Cancel
Save