mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 23:16:21 +00:00
Don't exclude the test voice directory.
This directory is no longer available, so the check is now redundant.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user