WitWebSocketTtsRequest Class
Performs a single authentication request
Accessor for text to speak
Dictionary< string, string > VoiceSettings[Get]
Accessor for voice setting values
Accessor for whether or not events should be requested
If set, downloads decoded audio and events to this path. Should include directory and file name without extension.
AudioSampleDecodeDelegate OnSamplesReceived[Get]
Callback for sample received from service
AudioJsonDecodeDelegate OnEventsReceived[Get]
Callback for event json received from service
WitWebSocketTtsRequest ( string requestId,
string textToSpeak,
Dictionary< string, string > voiceSettings,
bool useEvents,
string downloadPath )
Generates encoded chunk and applies reference data for all parameters
virtual override void HandleDownload ( string jsonString,
byte [] binaryData )
Handles the download, decode and callbacks for audio & audio event data
ParametersjsonDataDecoded json data object.
binaryDataDecoded binary data chunk which may be null or empty.
override string ToString ( )
Provides information of all parameters
virtual override void HandleDownloadBegin ( )
Method called for first response handling to mark download begin, setup file strean & perform first response callback on main thread.
virtual override void HandleComplete ( )
Callback when last chunk has been downloaded