mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 07:48:47 +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:
@@ -378,8 +378,8 @@ const char *EncodePhonemes(const char *p, char *outptr, int *bad_phoneme)
|
||||
}
|
||||
*outptr = 0;
|
||||
if (c == 0) {
|
||||
if (strcmp(p_lang, "en") == 0) {
|
||||
*p_lang = 0; // don't need "en", it's assumed by default
|
||||
if (strcmp(p_lang, ESPEAKNG_DEFAULT_VOICE) == 0) {
|
||||
*p_lang = 0; // don't need ESPEAKNG_DEFAULT_VOICE, it's assumed by default
|
||||
return p;
|
||||
}
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user