Browse Source

code cleanup: move dict_min_size handline in LoadVoice().

master
Juho Hiltunen 3 years ago
parent
commit
1a5db2f498
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      src/libespeak-ng/voices.c

+ 9
- 4
src/libespeak-ng/voices.c View File

char buf[sizeof(path_home)+30]; char buf[sizeof(path_home)+30];
char path_voices[sizeof(path_home)+12]; char path_voices[sizeof(path_home)+12];


int dict_min = 0;
int stress_add[8]; int stress_add[8];
char names[8][40]; char names[8][40];
char name1[40]; char name1[40];
sscanf(p, "%d", &speed.fast_settings); sscanf(p, "%d", &speed.fast_settings);
SetSpeed(3); SetSpeed(3);
break; break;
case V_DICTMIN:
sscanf(p, "%d", &dict_min);
case V_DICTMIN: {
if (CheckTranslator(translator, keyword_tab, key) != 0)
break;

if (sscanf(p, "%d", &value) == 1)
translator->dict_min_size = value;
break;
}

break; break;
case V_MAINTAINER: case V_MAINTAINER:
case V_STATUS: case V_STATUS:


voice->phoneme_tab_ix = ix; voice->phoneme_tab_ix = ix;
translator->phoneme_tab_ix = ix; translator->phoneme_tab_ix = ix;
translator->dict_min_size = dict_min;


if (!(control & 8/*compiling phonemes*/)) { if (!(control & 8/*compiling phonemes*/)) {
LoadDictionary(translator, new_dictionary, control & 4); LoadDictionary(translator, new_dictionary, control & 4);

Loading…
Cancel
Save