mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 06:32:20 +00:00
[1.29.24] Fixed problem where espeak_GetCurrentVoice() gave a newline character after the voice name.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@110 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+5
-2
@@ -499,13 +499,16 @@ void Translator::CalcLengths()
|
||||
if(length_mod < 8)
|
||||
length_mod = 8; // restrict how much lengths can be reduced
|
||||
|
||||
if(stress >= 7)
|
||||
if(stress >= 6)
|
||||
{
|
||||
// tonic syllable, include a constant component so it doesn't decrease directly with speed
|
||||
length_mod += 20;
|
||||
}
|
||||
|
||||
length_mod = (length_mod * stress_lengths[stress])/128;
|
||||
if((len = stress_lengths[stress]) == 0)
|
||||
len = stress_lengths[6];
|
||||
|
||||
length_mod = (length_mod * len)/128;
|
||||
|
||||
if(end_of_clause == 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user