diff --git a/src/libespeak-ng/setlengths.c b/src/libespeak-ng/setlengths.c index 327c06b7..3c8ac68e 100644 --- a/src/libespeak-ng/setlengths.c +++ b/src/libespeak-ng/setlengths.c @@ -155,11 +155,10 @@ void SetSpeed(int control) if (control == 2) wpm = embedded_value[EMBED_S2]; - #if HAVE_SONIC_H - int wpm_value; speed.min_pause = 5; - wpm_value = wpm; + #if HAVE_SONIC_H + int wpm_value = wpm; if (voice->speed_percent > 0) wpm = (wpm * voice->speed_percent)/100; diff --git a/tests/ssml.test b/tests/ssml.test index e105f89d..b2351e52 100755 --- a/tests/ssml.test +++ b/tests/ssml.test @@ -39,8 +39,7 @@ test_ssml() { for i in `ls tests/ssml/*.ssml` ; do test_ssml $i; done for i in `ls tests/ssml/*.ssml2` ; do test_ssml $i punct; done -( test_ssml_audio "" 88fccb35536158f25f4ae44a03fb005fef95c99b " Slow and low Fast and high." ) || \ -( test_ssml_audio "" 32c9f870117bce5852fd53af93e967187fa8ca40 " Slow and low Fast and high." ) || exit 1 +test_ssml_audio "" 88fccb35536158f25f4ae44a03fb005fef95c99b " Slow and low Fast and high." # #410 is a bug in SSML. Sentence termination causes prosody stack to misfunction. # Hash 8d3bace is the buggy version and should fail: test_ssml_audio " bug #410" 8d3bace9548ae73c4770a73c88c6f65e848b45cf " Slow and low. Fast and high." @@ -49,8 +48,9 @@ test_ssml_audio "