Include the test voices (these were excluded by espeak_ListVoices in a recent upstream change)

This commit is contained in:
Reece H. Dunn
2013-04-03 10:30:21 +01:00
parent 153d5dabc3
commit cd1bd5fcef
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -1936,12 +1936,12 @@ ESPEAK_API const espeak_VOICE **espeak_ListVoices(espeak_VOICE *voice_spec)
}
else
{
// list all: omit variant voices and mbrola voices and test voices
// list all: omit variant voices 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;
}