speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there an off-by-1 bug in notification callbacks?


From: Samuel Thibault
Subject: Re: Is there an off-by-1 bug in notification callbacks?
Date: Wed, 19 Aug 2020 22:02:51 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Nolan Darilek, le mer. 19 août 2020 12:45:14 -0500, a ecrit:
> On 8/19/20 11:34 AM, Samuel Thibault wrote:
> 
> > I can't find any function in the API doing this, but it'd be simple to
> > add: just send HISTORY GET CLIENT_ID to the server.
> 
> OK, thanks. What do I send, specifically?
> 
> "HISTORY GET CLIENT_ID\r\n"

That should just be enough. Try by hand:

$ socat UNIX-CONNECT:/run/user/$UID/speech-dispatcher/speechd.sock,crlf STDIO
HISTORY GET CLIENT_ID
245-4
245 OK CLIENT ID SENT

> "HISTORY GET CLIENT_ID\r\n.\r\n."
> 
> Or something else? I'm reading the spd_send_data docs, and they seem to imply 
> that "\r\n.\r\n." is a thing separate from "\r\n".

Where does it talk about \r\n.\r\n?
Are you thinking about the line to be used to end a multi-line text such
as for SPEAK? There is no reason for a HISTORY GET to need multi-line.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]