mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Program restructure and tidy-up.
Change Translator from Class to Struct, so avoiding use of Classes in eSpeak. Make more functions and variables "extern". git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@209 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+4
-4
@@ -423,11 +423,11 @@ void TranslDlg::OnCommand(wxCommandEvent& event)
|
||||
InitText(0);
|
||||
while((vp != NULL) && (n_ph_list < N_PH_LIST))
|
||||
{
|
||||
vp = translator->TranslateClause(NULL,vp,&clause_tone,NULL);
|
||||
translator->CalcPitches(clause_tone);
|
||||
translator->CalcLengths();
|
||||
vp = TranslateClause(translator,NULL,vp,&clause_tone,NULL);
|
||||
CalcPitches(translator,clause_tone);
|
||||
CalcLengths(translator);
|
||||
|
||||
translator->GetTranslatedPhonemeString(translator->phon_out,sizeof(translator->phon_out));
|
||||
GetTranslatedPhonemeString(translator->phon_out,sizeof(translator->phon_out));
|
||||
if(clause_count++ > 0)
|
||||
strcat(phon_out," ||");
|
||||
strcat(phon_out,translator->phon_out);
|
||||
|
||||
Reference in New Issue
Block a user