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

voice->samplerate = srate; voice->samplerate = srate;
} }
break; break;
#else
case V_MBROLA:
fprintf(stderr, "espeak-ng was built without mbrola support\n");
break;
#endif #endif
#if USE_KLATT #if USE_KLATT
case V_KLATT: case V_KLATT:
Read8Numbers(p, voice->klattv); Read8Numbers(p, voice->klattv);
voice->klattv[KLATT_Kopen] -= 40; voice->klattv[KLATT_Kopen] -= 40;
break; break;
#else
case V_KLATT:
fprintf(stderr, "espeak-ng was built without klatt support\n");
break;
#endif #endif
case V_FAST: case V_FAST:
sscanf(p, "%d", &speed.fast_settings); sscanf(p, "%d", &speed.fast_settings);

Loading…
Cancel
Save