Apparently 60ms is too much for some cards. --- src/libespeak-ng/speech.c | 2 +- tests/klatt.test | 10 +++++----- tests/variants.test | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) --- a/src/libespeak-ng/speech.c +++ b/src/libespeak-ng/speech.c @@ -80,7 +80,7 @@ static void *my_user_data = NULL; static espeak_ng_OUTPUT_MODE my_mode = ENOUTPUT_MODE_SYNCHRONOUS; static int out_samplerate = 0; static int voice_samplerate = 22050; -static const int min_buffer_length = 60; // minimum buffer length in ms +static const int min_buffer_length = 49; // minimum buffer length in ms static espeak_ng_STATUS err = ENS_OK; static t_espeak_callback *synth_callback = NULL; --- a/tests/klatt.test +++ b/tests/klatt.test @@ -4,8 +4,8 @@ # and run needed checks before is_hash # call actual test functions -test_wav en+klatt "696213dbbceecf20c3f80d771aab5757e05181c0" "The quick brown fox jumps over the lazy dog" -test_wav en+klatt2 "e55bf0a5cd96d648177f743557c67a791da03f7b" "The quick brown fox jumps over the lazy dog" -test_wav en+klatt3 "9ed890d032b1bed4a4ef1e3380b68133d0342429" "The quick brown fox jumps over the lazy dog" -test_wav en+klatt4 "77243123d96113ab747200c5312e4945af4e16f3" "The quick brown fox jumps over the lazy dog" -test_wav en+klatt5 "6426725d6c5a9053862a5251ff9c1e0a58c29e9b" "The quick brown fox jumps over the lazy dog" +test_wav en+klatt "249a1520c86745adc55ad205f001f1d056b29fcb" "The quick brown fox jumps over the lazy dog" +test_wav en+klatt2 "5f230eb6ed9f561eac66ce7252f69d780d69f802" "The quick brown fox jumps over the lazy dog" +test_wav en+klatt3 "872999b7f80ca5882873c0dfc17168f21684e2b7" "The quick brown fox jumps over the lazy dog" +test_wav en+klatt4 "17dcd3e5428cdb511a52c347dcd6e7f95d7e396e" "The quick brown fox jumps over the lazy dog" +test_wav en+klatt5 "378450bf436f48f7716064ce83d4e9de518e429f" "The quick brown fox jumps over the lazy dog" --- a/tests/variants.test +++ b/tests/variants.test @@ -10,4 +10,4 @@ test_wav "en+nonexisting" 029983e9084e04 test_wav "en+f1" dba359ac75ec33cc9cd4bd2af5031a3dbd84427c "Testing variants" test_wav "en+anikaRobot" d56012d8f4cfb4c36fdad31ad9ad7abda40ef474 "Testing variants" test_wav "en+Demonic" cc24431d23ce6d0a36f6a46df374f995beeb2863 "Testing variants" -test_wav "en+klatt4" e03e3c6204de48d3e5b172cca4cca1ff09461ee1 "Testing variants" +test_wav "en+klatt4" 5dac8221860dbb6ec8534923a208787bdb2960ce "Testing variants"