[1.31.14]

SSML: <voice>, if a language is specified, forget previously selected voice name.
Voice selection, convert language name to lower-case.
espeak-data/mbrola_ph files, allow use by both little and big-endian processors.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@149 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2008-02-22 13:59:25 +00:00
parent 28943f9000
commit 19db296d78
8 changed files with 49 additions and 20 deletions
+9 -2
View File
@@ -2251,6 +2251,8 @@ void CompileMbrola()
FILE *f_out;
int percent;
int n;
int *pw;
int *pw_end;
int count = 0;
int control;
char phoneme[40];
@@ -2318,8 +2320,13 @@ void CompileMbrola()
}
data[count].name = 0; // list terminator
fwrite(&mbrola_ctrl,4,1,f_out);
fwrite(data,sizeof(MBROLA_TAB),count+1,f_out);
Write4Bytes(f_out, mbrola_ctrl);
pw_end = (int *)(&data[count+1]);
for(pw = (int *)data; pw < pw_end; pw++)
{
Write4Bytes(f_out, *pw);
}
fclose(f_out);
wxLogStatus(_T("Mbrola translation file: %d phonemes"),count);
} // end of CompileMbrola