mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 13:54:20 +00:00
Merge branch 'development'
Conflicts: src/wave.cpp
This commit is contained in:
+4
-5
@@ -348,8 +348,8 @@ int HashDictionary(const char *string)
|
||||
|
||||
|
||||
|
||||
const char *EncodePhonemes(const char *p, char *outptr, unsigned char *bad_phoneme)
|
||||
/***************************************************************************/
|
||||
const char *EncodePhonemes(const char *p, char *outptr, int *bad_phoneme)
|
||||
/******************************************************************/
|
||||
/* Translate a phoneme string from ascii mnemonics to internal phoneme numbers,
|
||||
from 'p' up to next blank .
|
||||
Returns advanced 'p'
|
||||
@@ -366,7 +366,7 @@ const char *EncodePhonemes(const char *p, char *outptr, unsigned char *bad_phone
|
||||
unsigned int mnemonic_word;
|
||||
|
||||
if(bad_phoneme != NULL)
|
||||
bad_phoneme[0] = 0;
|
||||
*bad_phoneme = 0;
|
||||
|
||||
// skip initial blanks
|
||||
while(isspace(*p))
|
||||
@@ -428,8 +428,7 @@ const char *EncodePhonemes(const char *p, char *outptr, unsigned char *bad_phone
|
||||
// not recognised, report and ignore
|
||||
if(bad_phoneme != NULL)
|
||||
{
|
||||
bad_phoneme[0] = *p;
|
||||
bad_phoneme[1] = 0;
|
||||
utf8_in(bad_phoneme, p);
|
||||
}
|
||||
*outptr++ = 0;
|
||||
return(p+1);
|
||||
|
||||
Reference in New Issue
Block a user