mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[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:
+9
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user