mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 06:12:55 +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
@@ -226,7 +226,7 @@ static void init_path(void)
|
||||
char *env;
|
||||
unsigned char buf[100];
|
||||
|
||||
if((env = getenv("espeak-path")) != NULL)
|
||||
if((env = getenv("ESPEAK_DATA_PATH")) != NULL)
|
||||
{
|
||||
sprintf(path_home,"%s/espeak-data",env);
|
||||
if(GetFileLength(path_home) == -2)
|
||||
@@ -242,7 +242,7 @@ static void init_path(void)
|
||||
sprintf(path_home,"%s\\espeak-data",buf);
|
||||
#else
|
||||
// char *env;
|
||||
// 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