mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
fix speaking spaces
Espeak doesn't speak spaces unless it is specifically told to do so.
This commit is contained in:
parent
b7fe3af320
commit
a5b655ddb0
1 changed files with 7 additions and 3 deletions
10
espeak.c
10
espeak.c
|
|
@ -170,9 +170,13 @@ static espeak_ERROR speak_text(struct synth_t *s)
|
|||
if (espeakup_mode == ESPEAKUP_MODE_SPEAKUP && (s->len == 1)) {
|
||||
char *buf;
|
||||
int n;
|
||||
n = asprintf(&buf,
|
||||
"<say-as interpret-as=\"characters\">%c</say-as>",
|
||||
s->buf[0]);
|
||||
if (s->buf[0] == ' ')
|
||||
n = asprintf(&buf,
|
||||
"<say-as interpret-as=\"tts:char\"> </say-as>");
|
||||
else
|
||||
n = asprintf(&buf,
|
||||
"<say-as interpret-as=\"characters\">%c</say-as>",
|
||||
s->buf[0]);
|
||||
if (n == -1) {
|
||||
/* D'oh. Not much to do on allocation failure.
|
||||
* Perhaps espeak will happen to say the character */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue