mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-02 06:42:10 +00:00
Check for ENE_VERSION_MISMATCH from espeak_ng_Initialize.
This commit is contained in:
+3
-3
@@ -577,10 +577,10 @@ int main(int argc, char **argv)
|
||||
espeak_ng_InitializePath(data_path);
|
||||
espeak_ng_STATUS result = espeak_ng_Initialize();
|
||||
if (result != ENS_OK) {
|
||||
if (result == ENE_READ_ERROR)
|
||||
fprintf(stderr, "Failed to load espeak-data\n");
|
||||
else
|
||||
if (result == ENE_VERSION_MISMATCH)
|
||||
fprintf(stderr, "Wrong version of espeak-data (expected 0x%x) at %s\n", version_phdata, path_home);
|
||||
else
|
||||
fprintf(stderr, "Failed to load espeak-data\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user