Let espeak choose the buffer size

The default is already quite small, and choosing a too small one may
lead to broken speech.

Fixes #13
This commit is contained in:
Samuel Thibault 2020-06-15 11:55:32 +02:00 committed by Alexander Epaneshnikov
commit 171bb517a0

View file

@ -321,7 +321,7 @@ static void reinitialize_espeak(struct synth_t *s)
int rate;
/* Re-initialize espeak */
rate = espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 50, NULL, 0);
rate = espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 0, NULL, 0);
if (rate < 0) {
fprintf(stderr, "Unable to initialize espeak.\n");
return;
@ -407,7 +407,7 @@ int initialize_espeak(struct synth_t *s)
int rate;
/* initialize espeak */
rate = espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 50, NULL, 0);
rate = espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 0, NULL, 0);
if (rate < 0) {
fprintf(stderr, "Unable to initialize espeak.\n");
return -1;