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

@@ -1600,11 +1600,11 @@ ESPEAK_API const espeak_VOICE **espeak_ListVoices(espeak_VOICE *voice_spec)
// select the voices which match the voice_spec, and sort them by preference
SetVoiceScores(voice_spec, voices, 1);
} else {
// list all: omit variant voices and mbrola voices and test voices
// list all: omit variant and mbrola voices
j = 0;
for (ix = 0; (v = voices_list[ix]) != NULL; ix++) {
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] = NULL;

Loading…
Cancel
Save