Script test_client_py :: Class HTTPSpeakerClient
[hide private]
[frames] | no frames]

Class HTTPSpeakerClient

source code

Emacspeak HTTP speech client, for HTTPSpeaker instances.

Instance Methods [hide private]
 
__init__(self, host='127.0.0.1', port=8000)
Initialize client to connect to server at given host and port.
source code
 
postCommand(self, command, arg='')
Post command, with argument arg (default, empty), to the speech server.
source code
 
speak(self, text)
Speak the supplied string.
source code
 
stop(self)
Stop speaking.
source code
 
isSpeaking(self)
Return '0' when not speaking.
source code
 
close(self)
Close the connection to the speech server.
source code
Method Details [hide private]

postCommand(self, command, arg='')

source code 

Post command, with argument arg (default, empty), to the speech server. Returns the body of the server's HTTP response, if any. On error, HTTPSpeakerError is raised.