public class SpeakAgent extends ServiceAgent<SpeakResponse>
clientIdentity, httpMethod, onCompleteListener, serviceResult, serviceResultClass, serviceUri| Constructor and Description |
|---|
SpeakAgent(java.net.URI baseUri,
ClientIdentity identity,
java.lang.String text,
java.lang.String language,
java.lang.String format,
java.lang.String options,
java.lang.Object state)
Initializes an instance of the
SpeakAgent class |
constructHttpRequest, getContentType, getRequestBodyData, getServiceResult, handleException, handleException, OnCompleteRequest, parseOutput, parseServiceResultRequired, processRequest, setServiceResultpublic SpeakAgent(java.net.URI baseUri,
ClientIdentity identity,
java.lang.String text,
java.lang.String language,
java.lang.String format,
java.lang.String options,
java.lang.Object state)
throws java.lang.Exception
SpeakAgent classbaseUri - base URI objectidentity - the client identitytext - the textlanguage - the language to speak informat - the stream format of the content type. Currently "audio/wav"
and "audio/mp3" are available.options - Specifies the quality of the audio signals. Currently
"MaxQuality" and "MinSize" are available.state - user defined statejava.lang.Exception