mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.25.04] Windows, look in Registry to find location of dictsource.
Add lang=is Icelandic. Adopt Phoneme [R] from experimental Croatian [R2]. lang=hu, add vowel_pause. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@20 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+11
-1
@@ -280,13 +280,23 @@ void Free(void *ptr)
|
||||
static void init_path(const char *path)
|
||||
{//====================================
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
HKEY RegKey;
|
||||
unsigned long size;
|
||||
unsigned long var_type;
|
||||
unsigned char buf[100];
|
||||
|
||||
if(path != NULL)
|
||||
{
|
||||
sprintf(path_home,"%s/espeak-data",path);
|
||||
return;
|
||||
}
|
||||
buf[0] = 0;
|
||||
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Speech\\Voices\\Tokens\\eSpeak", 0, KEY_READ, &RegKey);
|
||||
size = sizeof(buf);
|
||||
var_type = REG_SZ;
|
||||
RegQueryValueEx(RegKey, "path", 0, &var_type, buf, &size);
|
||||
|
||||
strcpy(path_home,"c:\\Program Files\\espeak\\espeak-data");
|
||||
sprintf(path_home,"%s\\espeak-data",buf);
|
||||
|
||||
#else
|
||||
if(path != NULL)
|
||||
|
||||
Reference in New Issue
Block a user