From 171bb517a08dbadb9c05442a8e678b776aa5f604 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 15 Jun 2020 11:55:32 +0200 Subject: [PATCH] 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 --- espeak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/espeak.c b/espeak.c index f9998fc..a32bde8 100644 --- a/espeak.c +++ b/espeak.c @@ -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;