mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
[1.25.3] espeak_SetVoiceByName() didn't set current_voice correctly when voice is specified by filename.
Added ResetLetterBits() to clear data before using SetLetterBits(). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@19 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -629,6 +629,21 @@ void SetLetterVowel(Translator *tr, int c)
|
||||
tr->letter_bits[c] = 0x81; // group 0 only
|
||||
}
|
||||
|
||||
void ResetLetterBits(Translator *tr, int groups)
|
||||
{//=============================================
|
||||
// Clear all the specified groups
|
||||
unsigned int ix;
|
||||
unsigned int mask;
|
||||
|
||||
mask = ~groups;
|
||||
|
||||
for(ix=0; ix<sizeof(tr->letter_bits); ix++)
|
||||
{
|
||||
tr->letter_bits[ix] &= mask;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SetLetterBits(Translator *tr, int group, const char *string)
|
||||
{//==============================================================
|
||||
int bits;
|
||||
|
||||
Reference in New Issue
Block a user