Use ESPEAKNG_DEFAULT_VOICE instead of hard coded "en".

This will make it easier to set a default voice other than
English. This is important for cases when a language will fall back to
the default voice.

Some references to L('e', 'n') still need to be changed.
This commit is contained in:
Juho Hiltunen
2021-08-10 19:57:53 +03:00
parent 3038d40081
commit d80f1a80a2
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -442,7 +442,7 @@ static espeak_ng_STATUS Synthesize(unsigned int unique_identifier, const void *t
espeak_ng_STATUS status;
if (translator == NULL) {
status = espeak_ng_SetVoiceByName("en");
status = espeak_ng_SetVoiceByName(ESPEAKNG_DEFAULT_VOICE);
if (status != ENS_OK)
return status;
}