mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 07:03:12 +00:00
Only update the sample rate if the mbrola voice was successfully loaded.
This commit is contained in:
@@ -832,7 +832,8 @@ voice_t *LoadVoice(const char *vname, int control)
|
||||
espeak_ng_STATUS status = LoadMbrolaTable(name1, name2, &srate);
|
||||
if (status != ENS_OK)
|
||||
espeak_ng_PrintStatusCodeMessage(status, stderr, NULL);
|
||||
voice->samplerate = srate;
|
||||
else
|
||||
voice->samplerate = srate;
|
||||
}
|
||||
break;
|
||||
case V_KLATT:
|
||||
|
||||
Reference in New Issue
Block a user