mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 22:07:12 +00:00
[1.29.24] Fixed problem where espeak_GetCurrentVoice() gave a newline character after the voice name.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@110 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+3
-3
@@ -460,15 +460,15 @@ static void UngetC(int c)
|
||||
|
||||
const char *Translator::LookupSpecial(const char *string)
|
||||
{//======================================================
|
||||
unsigned int flags;
|
||||
unsigned int flags[2];
|
||||
char phonemes[55];
|
||||
char phonemes2[55];
|
||||
static char buf[60];
|
||||
char *string1 = (char *)string;
|
||||
|
||||
if(LookupDictList(&string1,phonemes,&flags,0))
|
||||
if(LookupDictList(&string1,phonemes,flags,0,NULL))
|
||||
{
|
||||
SetWordStress(phonemes,flags,-1,0);
|
||||
SetWordStress(phonemes,flags[0],-1,0);
|
||||
DecodePhonemes(phonemes,phonemes2);
|
||||
sprintf(buf,"[[%s]] ",phonemes2);
|
||||
option_phoneme_input = 1;
|
||||
|
||||
Reference in New Issue
Block a user