[1.29.01] <prosody pitch> when specified as semitones had no effect.

lang cs: mbrola phoneme translation was missing phoneme [R^]


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@82 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-09-04 09:20:28 +00:00
parent 75f0402750
commit 943e8b300e
7 changed files with 13 additions and 5 deletions
+4
View File
@@ -222,6 +222,7 @@ MyFrame::MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, c
int error_flag = 0;
int result;
int param;
// Create some dummy layout windows
wxSashLayoutWindow *win;
@@ -278,6 +279,9 @@ wxSashLayoutWindow *win;
}
WavegenSetVoice(voice);
for(param=0; param<N_SPEECH_PARAM; param++)
param_stack[0].parameter[param] = param_defaults[param];
SetParameter(espeakRATE,option_speed,0);
SetSpeed(3);
+3 -1
View File
@@ -1004,8 +1004,10 @@ static int attr_prosody_value(int param_type, const wchar_t *pw, int *value_out)
if((tail[0]=='s') && (tail[1]=='t'))
{
double x;
// convert from semitones to a frequency percentage
*value_out = (int)(pow(double(2.0),double((value*sign)/12) * 100));
x = pow(double(2.0),double((value*sign)/12)) * 100;
*value_out = (int)x;
return(2); // percentage
}
+1 -1
View File
@@ -35,7 +35,7 @@
#include "translate.h"
#include "wave.h"
const char *version_string = "1.29 27.Aug.07";
const char *version_string = "1.29.01 04.Sep.07";
const int version_phdata = 0x012901;
int option_device_number = -1;