From c1d33d673838faf8b70cc42c72c119f5c0002d44 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 26 Jun 2009 16:00:08 -0500 Subject: [PATCH] Set the espeak audio buffer size to 50 ms This should help make the cancel command more responsive. --- synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synth.c b/synth.c index 1ef8250..e3dbab5 100644 --- a/synth.c +++ b/synth.c @@ -213,7 +213,7 @@ int initialize_espeak(struct synth_t *s) /* initialize espeak */ select_audio_mode(); - rate = espeak_Initialize(audio_mode, 0, NULL, 0); + rate = espeak_Initialize(audio_mode, 50, NULL, 0); if (rate < 0) { fprintf(stderr, "Unable to initialize espeak.\n"); return -1;