mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 14:33:31 +00:00
[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:
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user