mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-24 04:23:44 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user