mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
[1.45.12]
lang=de: Fix important pronunciation error, "sage". Change handling of unrecognized phoneme names. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@260 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+7
-18
@@ -643,17 +643,11 @@ step=1; // TEST
|
||||
}
|
||||
|
||||
// check for errors in the phonemes codes
|
||||
for(ix=0; ix<sizeof(encoded_ph); ix++)
|
||||
if(bad_phoneme[0] != 0)
|
||||
{
|
||||
c = encoded_ph[ix];
|
||||
if(c == 0) break;
|
||||
|
||||
if(c == 255)
|
||||
{
|
||||
/* unrecognised phoneme, report error */
|
||||
fprintf(f_log,"%5d: Bad phoneme [%c] (0x%x) in: %s %s\n",linenum,bad_phoneme[0],bad_phoneme[0],word,phonetic);
|
||||
error_count++;
|
||||
}
|
||||
// unrecognised phoneme, report error
|
||||
fprintf(f_log,"%5d: Bad phoneme [%c] (0x%x) in: %s %s\n",linenum,bad_phoneme[0],bad_phoneme[0],word,phonetic);
|
||||
error_count++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1249,15 +1243,10 @@ static char *compile_rule(char *input)
|
||||
}
|
||||
|
||||
EncodePhonemes(rule_phonemes,buf,bad_phoneme);
|
||||
for(ix=0;; ix++)
|
||||
if(bad_phoneme[0] != 0)
|
||||
{
|
||||
if((c = buf[ix])==0) break;
|
||||
if(c==255)
|
||||
{
|
||||
fprintf(f_log,"%5d: Bad phoneme [%c] in %s\n",linenum,bad_phoneme[0],input);
|
||||
error_count++;
|
||||
break;
|
||||
}
|
||||
fprintf(f_log,"%5d: Bad phoneme [%c] in %s\n",linenum,bad_phoneme[0],input);
|
||||
error_count++;
|
||||
}
|
||||
strcpy(output,buf);
|
||||
len = strlen(buf)+1;
|
||||
|
||||
Reference in New Issue
Block a user