Browse Source

LoadVoice: Warn when mbrola or klatt was not compiled in (#2148)

but the user requests it

Ref: #1807
master
Samuel Thibault 3 months ago
parent
commit
034807a91d
No account linked to committer's email address
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/libespeak-ng/voices.c

+ 8
- 0
src/libespeak-ng/voices.c View File

@@ -674,6 +674,10 @@ voice_t *LoadVoice(const char *vname, int control)
voice->samplerate = srate;
}
break;
#else
case V_MBROLA:
fprintf(stderr, "espeak-ng was built without mbrola support\n");
break;
#endif
#if USE_KLATT
case V_KLATT:
@@ -681,6 +685,10 @@ voice_t *LoadVoice(const char *vname, int control)
Read8Numbers(p, voice->klattv);
voice->klattv[KLATT_Kopen] -= 40;
break;
#else
case V_KLATT:
fprintf(stderr, "espeak-ng was built without klatt support\n");
break;
#endif
case V_FAST:
sscanf(p, "%d", &speed.fast_settings);

Loading…
Cancel
Save