Browse Source

Don't exclude the test voice directory.

This directory is no longer available, so the check is now
redundant.
master
Reece H. Dunn 8 years ago
parent
commit
9bb9e98f84
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/libespeak-ng/voices.c

+ 2
- 2
src/libespeak-ng/voices.c View File

// select the voices which match the voice_spec, and sort them by preference // select the voices which match the voice_spec, and sort them by preference
SetVoiceScores(voice_spec, voices, 1); SetVoiceScores(voice_spec, voices, 1);
} else { } else {
// list all: omit variant voices and mbrola voices and test voices
// list all: omit variant and mbrola voices
j = 0; j = 0;
for (ix = 0; (v = voices_list[ix]) != NULL; ix++) { for (ix = 0; (v = voices_list[ix]) != NULL; ix++) {
if ((v->languages[0] != 0) && (strcmp(&v->languages[1], "variant") != 0) if ((v->languages[0] != 0) && (strcmp(&v->languages[1], "variant") != 0)
&& (memcmp(v->identifier, "mb/", 3) != 0) && (memcmp(v->identifier, "test/", 5) != 0))
&& (memcmp(v->identifier, "mb/", 3) != 0))
voices[j++] = v; voices[j++] = v;
} }
voices[j] = NULL; voices[j] = NULL;

Loading…
Cancel
Save