mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-27 05:23:28 +00:00
Use a default buffer length of 60mS to fix using MBROLA voices.
This commit is contained in:
@@ -194,7 +194,7 @@ ESPEAK_API int espeak_Initialize(espeak_AUDIO_OUTPUT output, int buflength, cons
|
||||
output: the audio data can either be played by eSpeak or passed back by the SynthCallback function.
|
||||
|
||||
buflength: The length in mS of sound buffers passed to the SynthCallback function.
|
||||
Value=0 gives a default of 50mS.
|
||||
Value=0 gives a default of 60mS.
|
||||
This paramater is only used for AUDIO_OUTPUT_RETRIEVAL and AUDIO_OUTPUT_SYNCHRONOUS modes.
|
||||
|
||||
path: The directory which contains the espeak-ng-data directory, or NULL for the default location.
|
||||
|
||||
@@ -232,7 +232,7 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_InitializeOutput(espeak_ng_OUTPUT_MODE
|
||||
|
||||
// buffer_length is in mS, allocate 2 bytes per sample
|
||||
if (buffer_length == 0)
|
||||
buffer_length = 50;
|
||||
buffer_length = 60;
|
||||
|
||||
outbuf_size = (buffer_length * samplerate)/500;
|
||||
out_start = (unsigned char *)realloc(outbuf, outbuf_size);
|
||||
|
||||
Reference in New Issue
Block a user