mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
[1.30.05]
Fix an error where vowels start too loud (too strong attack). Added command-line option --compile-debug, which is like --compile but it includes source line information from the *_rules file, which is displayed with the -X option. espeakedit: Added Compile->Compile_dictionary(debug), Fixed <emphasis> which was broken in the previous version(s). <emphasis> now reduces the previous stressed syllable to secondary stress. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@119 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+10
-4
@@ -77,7 +77,7 @@ extern int Read4Bytes(FILE *f);
|
||||
extern void MakeVowelLists(void);
|
||||
extern void FindPhonemesUsed(void);
|
||||
extern void DrawEnvelopes();
|
||||
extern int CompileDictionary(const char *dsource, const char *dict_name, FILE *log, char *fname);
|
||||
extern int CompileDictionary(const char *dsource, const char *dict_name, FILE *log, char *fname, int flags);
|
||||
|
||||
static int markers_used[8];
|
||||
|
||||
@@ -1952,10 +1952,16 @@ void Compile::Report(void)
|
||||
|
||||
fprintf(f_report," [%s] %s",WordToString(prev_mnemonic = list[ix]->ph_mnemonic), phoneme_tab_list2[prev_table = list[ix]->ph_table].name);
|
||||
fputc('\n',f_report);
|
||||
|
||||
free(list[ix]);
|
||||
}
|
||||
|
||||
for(ix=0; ix<n; ix++)
|
||||
{
|
||||
free(list[ix]);
|
||||
list[ix] = NULL;
|
||||
}
|
||||
|
||||
free(list);
|
||||
list = NULL;
|
||||
fclose(f_report);
|
||||
}
|
||||
|
||||
@@ -2144,7 +2150,7 @@ wxString CompileAllDictionaries()
|
||||
|
||||
LoadVoice(voicename,0);
|
||||
|
||||
if((err = CompileDictionary(path_dsource, dictname,log,NULL)) > 0)
|
||||
if((err = CompileDictionary(path_dsource, dictname,log,NULL,0)) > 0)
|
||||
{
|
||||
report = report + dictstr + wxString::Format(_T(" %d, "),err);
|
||||
errors += err;
|
||||
|
||||
Reference in New Issue
Block a user