mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
[1.27.03] Windows, look for env variable ESPEAK_DATA_PATH.
espeakedit, fix crash in Compile_phoneme_data when there is no voices directory. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@58 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+2
-2
@@ -292,7 +292,7 @@ static void init_path(const char *path)
|
||||
return;
|
||||
}
|
||||
|
||||
if((env = getenv("ESPEAK-DATA-PATH")) != NULL)
|
||||
if((env = getenv("ESPEAK_DATA_PATH")) != NULL)
|
||||
{
|
||||
sprintf(path_home,"%s/espeak-data",env);
|
||||
if(GetFileLength(path_home) == -2)
|
||||
@@ -316,7 +316,7 @@ static void init_path(const char *path)
|
||||
return;
|
||||
}
|
||||
|
||||
// if((env = getenv("ESPEAK-DATA-PATH")) != NULL)
|
||||
// if((env = getenv("ESPEAK_DATA_PATH")) != NULL)
|
||||
// {
|
||||
// snprintf(path_home,sizeof(path_home),"%s/espeak-data",env);
|
||||
// if(GetFileLength(path_home) == -2)
|
||||
|
||||
Reference in New Issue
Block a user