pass '\n' to espeak too for e.g. proper pause

This commit is contained in:
Samuel Thibault 2019-08-18 20:29:55 +02:00
commit 1e31008091

View file

@ -171,7 +171,7 @@ static void process_buffer(struct synth_t *s, char *buf, ssize_t length)
start = 0;
end = 0;
while (start < length) {
while ((buf[end] < 0 || buf[end] >= ' ') && end < length)
while ((buf[end] < 0 || buf[end] >= ' ' || buf[end] == '\n') && end < length)
end++;
if (end != start) {
txtLen = end - start;