mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-25 12:46:13 +00:00
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@160 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
# remove -fno-exceptions because it caused problems with stdio library on some platforms (ARM)
|
||||
# remove -fno-exceptions if it causes problems with stdio library on some platforms (ARM)
|
||||
|
||||
PREFIX=/
|
||||
BINDIR=$(PREFIX)/usr/bin
|
||||
@@ -6,7 +6,7 @@ INCDIR=$(PREFIX)/usr/include/espeak
|
||||
LIBDIR=$(PREFIX)/usr/lib
|
||||
DATADIR=$(PREFIX)/usr/share/espeak-data
|
||||
|
||||
RELEASE = 1.33
|
||||
RELEASE = 1.34
|
||||
BIN_NAME = speak
|
||||
BIN2_NAME = espeak
|
||||
LIB_NAME = libespeak.so
|
||||
|
||||
+2
-1
@@ -396,6 +396,7 @@ static char nullstring[] = {0};
|
||||
else
|
||||
{
|
||||
EncodePhonemes(phonetic,encoded_ph,bad_phoneme);
|
||||
printf("Encode: [%s] = %.2x %.2x %.2x\n",phonetic,encoded_ph[0],encoded_ph[1],encoded_ph[2]);
|
||||
if(strchr(encoded_ph,phonSWITCH) != 0)
|
||||
{
|
||||
flag_codes[n_flag_codes++] = BITNUM_FLAG_ONLY_S; // don't match on suffixes (except 's') when switching languages
|
||||
@@ -1544,7 +1545,7 @@ int CompileDictionary(const char *dsource, const char *dict_name, FILE *log, cha
|
||||
fclose(f_in);
|
||||
|
||||
fseek(f_out,4,SEEK_SET);
|
||||
fwrite(&offset_rules,4,1,f_out);
|
||||
Write4Bytes(f_out,offset_rules);
|
||||
fclose(f_out);
|
||||
|
||||
translator->LoadDictionary(dict_name,0);
|
||||
|
||||
+4
-3
@@ -103,8 +103,8 @@ void strncpy0(char *to,const char *from, int size)
|
||||
|
||||
#else
|
||||
|
||||
# define FIX_ENDIAN_USHORT(val) (val)
|
||||
# define FIX_ENDIAN_UINT(val) (val)
|
||||
#define FIX_ENDIAN_USHORT(val) (val)
|
||||
#define FIX_ENDIAN_UINT(val) (val)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -180,6 +180,7 @@ int Translator::LoadDictionary(const char *name, int no_error)
|
||||
|
||||
pw = (int *)data_dictlist;
|
||||
length = FIX_ENDIAN_UINT(pw[1]);
|
||||
|
||||
if(size <= (N_HASH_DICT + sizeof(int)*2))
|
||||
{
|
||||
fprintf(stderr,"Empty _dict file: '%s\n",fname);
|
||||
@@ -189,7 +190,7 @@ int Translator::LoadDictionary(const char *name, int no_error)
|
||||
if((FIX_ENDIAN_UINT(pw[0]) != N_HASH_DICT) ||
|
||||
(length <= 0) || (length > 0x8000000))
|
||||
{
|
||||
fprintf(stderr,"Bad data: '%s'\n",fname);
|
||||
fprintf(stderr,"Bad data: '%s' (%x %x)\n",fname,FIX_ENDIAN_UINT(pw[0]),length);
|
||||
return(2);
|
||||
}
|
||||
data_dictrules = &data_dictlist[length];
|
||||
|
||||
+2
-2
@@ -35,8 +35,8 @@
|
||||
#include "translate.h"
|
||||
#include "wave.h"
|
||||
|
||||
const char *version_string = "1.33 06.Mar.08";
|
||||
const int version_phdata = 0x013200;
|
||||
const char *version_string = "1.34 06.Mar.08";
|
||||
const int version_phdata = 0x013400;
|
||||
|
||||
int option_device_number = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user