mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-09 07:52:27 +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)
|
||||
{
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
#include "translate.h"
|
||||
#include "wave.h"
|
||||
|
||||
const char *version_string = "1.37.09 31.Jul.08";
|
||||
const char *version_string = "1.37.10 05.Aug.08";
|
||||
const int version_phdata = 0x013400;
|
||||
|
||||
int option_device_number = -1;
|
||||
|
||||
Reference in New Issue
Block a user