mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
[1.37.10]
SAPI5: Fix pitch changes for mbrola voices. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@182 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+16
-1
@@ -396,11 +396,26 @@ static void MbrolaEmbedded(int &embix, int sourceix)
|
||||
unsigned int word; // bit 7=last command for this word, bits 5,6 sign, bits 0-4 command
|
||||
unsigned int value;
|
||||
int command;
|
||||
int sign=0;
|
||||
|
||||
do {
|
||||
word = embedded_list[embix++];
|
||||
value = word >> 8;
|
||||
command = word & 0x7f;
|
||||
command = word & 0x1f;
|
||||
|
||||
if((word & 0x60) == 0x60)
|
||||
sign = -1;
|
||||
else
|
||||
if((word & 0x60) == 0x40)
|
||||
sign = 1;
|
||||
|
||||
if(command < N_EMBEDDED_VALUES)
|
||||
{
|
||||
if(sign == 0)
|
||||
embedded_value[command] = value;
|
||||
else
|
||||
embedded_value[command] += (value * sign);
|
||||
}
|
||||
|
||||
switch(command & 0x1f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user