[1.31.13]

Error message if accented letters are not recognized as alphabetic.
"speak" program.  Don't finish when an empty sentence is found.
Compile dictionary: compile *_listx after *_list, not before.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@146 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2008-02-21 18:47:23 +00:00
parent 134f750277
commit 897d6ba81e
22 changed files with 238 additions and 93 deletions
+10 -3
View File
@@ -59,7 +59,7 @@ int (* uri_callback)(int, const char *, const char *) = NULL;
int (* phoneme_callback)(const char *) = NULL;
FILE *f_wave = NULL;
int quiet = 0;
int quiet = 0;
unsigned int samples_total = 0;
unsigned int samples_split = 0;
unsigned int wavefile_count = 0;
@@ -304,6 +304,9 @@ static int WavegenFile(void)
finished = WavegenFill(0);
if(quiet)
return(finished);
if(f_wave == NULL)
{
sprintf(fname,"%s_%.2d%s",wavefile,++wavefile_count,filetype);
@@ -794,15 +797,19 @@ int main (int argc, char **argv)
InitText(0);
SpeakNextClause(f_text,p_text,0);
ix = 1;
for(;;)
{
if(WavegenFile() != 0)
{
break; // finished, wavegen command queue is empty
if(ix == 0)
break; // finished, wavegen command queue is empty
}
if(Generate(phoneme_list,&n_phoneme_list,1)==0)
SpeakNextClause(NULL,NULL,1);
{
ix = SpeakNextClause(NULL,NULL,1);
}
}
CloseWaveFile();