On Tue, 17 Dec 2013, Eric Scheibler wrote:

> Dave Mielke <d...@mielke.cc> schrieb am 17.12.2013, 13:05 -0500:
> >Please let me know if this problem is fixed now.
> 
> Hm not really. As far as I see, it's even worse. Now I hear characters, which 
> aren't there, for
> example I type:
> j and it reads jy or j+
> <space> and I get <space>3 or also <space>et

Here's a fix:

diff --git a/Drivers/Speech/eSpeak/speech.c b/Drivers/Speech/eSpeak/speech.c
index 15547c4..c474ec9 100644
--- a/Drivers/Speech/eSpeak/speech.c
+++ b/Drivers/Speech/eSpeak/speech.c
@@ -57,8 +57,7 @@ spk_say(SpeechSynthesizer *spk, const unsigned char *buffer, 
size_t length, size
 
        IndexPos = 0;
 
-       /* add 1 to the length in order to pass along the trailing zero */
-       result = espeak_Synth(buffer, length+1, 0, POS_CHARACTER, 0,
+       result = espeak_Synth(buffer, length, 0, POS_CHARACTER, 0,
                        espeakCHARS_UTF8, NULL, NULL);
        if (result != EE_OK)
                logMessage(LOG_ERR, "eSpeak: Synth() returned error %d", 
result);


Nicolas
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@mielke.cc
For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Reply via email to