mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +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:
+4
-2
@@ -352,7 +352,7 @@ char *EncodePhonemes(char *p, char *outptr, unsigned char *bad_phoneme)
|
||||
/* Translate a phoneme string from ascii mnemonics to internal phoneme numbers,
|
||||
from 'p' up to next blank .
|
||||
Returns advanced 'p'
|
||||
outptr contains encoded phonemes, unrecognised phonemes are encoded as 255
|
||||
outptr contains encoded phonemes, unrecognized phoneme stops the encoding
|
||||
bad_phoneme must point to char array of length 2 of more
|
||||
*/
|
||||
{
|
||||
@@ -423,9 +423,11 @@ char *EncodePhonemes(char *p, char *outptr, unsigned char *bad_phoneme)
|
||||
|
||||
if(max_ph == 0)
|
||||
{
|
||||
max_ph = 255; /* not recognised */
|
||||
// not recognised, report and ignore
|
||||
bad_phoneme[0] = *p;
|
||||
bad_phoneme[1] = 0;
|
||||
*outptr++ = 0;
|
||||
return(p+1);
|
||||
}
|
||||
|
||||
if(max <= 0)
|
||||
|
||||
Reference in New Issue
Block a user