Always use 'en' as the default voice/language.

This commit is contained in:
Reece H. Dunn
2017-01-19 19:57:06 +00:00
parent 54b1bf939c
commit 59ca718d40
4 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -592,7 +592,7 @@ int main(int argc, char **argv)
}
if (voicename[0] == 0)
strcpy(voicename, "default");
strcpy(voicename, "en");
result = espeak_ng_SetVoiceByName(voicename);
if (result != ENS_OK) {
+1 -1
View File
@@ -556,7 +556,7 @@ voice_t *LoadVoice(const char *vname, int control)
return NULL;
} else {
if (voicename[0] == 0)
strcpy(voicename, "default");
strcpy(voicename, "en");
sprintf(path_voices, "%s%cvoices%c", path_home, PATHSEP, PATHSEP);
sprintf(buf, "%s%s", path_voices, voicename); // look in the main voices directory