Browse Source

code cleanup: remove unnecessary call to SelectPhonemeTable()

It is called multiple times in LoadVoice().
master
Juho Hiltunen 3 years ago
parent
commit
ac643ea5ad
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      src/libespeak-ng/voices.c

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



strcpy(translator_name, language_type); strcpy(translator_name, language_type);
strcpy(new_dictionary, language_type); strcpy(new_dictionary, language_type);
strcpy(phonemes_name, language_type);


if (!tone_only) { if (!tone_only) {
voice = &voicedata; voice = &voicedata;
} }
VoiceReset(tone_only); VoiceReset(tone_only);


if (!tone_only)
SelectPhonemeTableName(phonemes_name); // set up phoneme_tab

while ((f_voice != NULL) && (fgets_strip(buf, sizeof(buf), f_voice) != NULL)) { while ((f_voice != NULL) && (fgets_strip(buf, sizeof(buf), f_voice) != NULL)) {
// isolate the attribute name // isolate the attribute name
for (p = buf; (*p != 0) && !isspace(*p); p++) ; for (p = buf; (*p != 0) && !isspace(*p); p++) ;

Loading…
Cancel
Save