string | TextToSpeak[Get] Accessor for text to speak |
Dictionary< string, string > | VoiceSettings[Get] Accessor for voice setting values |
AudioType[Get] Accessor for audio type | |
bool | UseEvents[Get] Accessor for whether or not events should be requested |
string | DownloadPath[Get] If set, downloads decoded audio and events to this path. Should include directory and file name without extension. |
Action< float[]> | OnSamplesReceived[Get] Callback for sample received from service |
Action< WitResponseArray > | OnEventsReceived[Get] Callback for event json received from service |
WitWebSocketTtsRequest ( string textToSpeak, Dictionary< string, string > voiceSettings, TTSWitAudioType audioType, bool useEvents, string downloadPath ) Generates encoded chunk and applies reference data for all parameters | |
override void | Handles the download, decode and callbacks for audio & audio event data |
override string | ToString ( ) Provides information of all parameters |
override void | Method called for first response handling to mark download begin, setup file strean & perform first response callback on main thread. |
override void | HandleComplete ( ) Callback when last chunk has been downloaded |
string Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.TextToSpeak |
---|
Accessor for text to speak |
Dictionary<string, string> Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.VoiceSettings |
---|
Accessor for voice setting values |
TTSWitAudioType Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.AudioType |
---|
Accessor for audio type |
bool Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.UseEvents |
---|
Accessor for whether or not events should be requested |
string Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.DownloadPath |
---|
If set, downloads decoded audio and events to this path. Should include directory and file name without extension. |
Action<float[]> Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.OnSamplesReceived |
---|
Callback for sample received from service |
Action<WitResponseArray> Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.OnEventsReceived |
---|
Callback for event json received from service |
Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.WitWebSocketTtsRequest ( string textToSpeak, Dictionary< string, string > voiceSettings, TTSWitAudioType audioType, bool useEvents, string downloadPath ) |
---|
Generates encoded chunk and applies reference data for all parameters |
override void Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.HandleDownload ( WitResponseNode jsonData, byte [] binaryData ) |
---|
Handles the download, decode and callbacks for audio & audio event data Parameters jsonData Decoded json data object. binaryDataDecoded binary data chunk which may be null or empty. |
override string Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.ToString ( ) |
---|
Provides information of all parameters |
override void Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.HandleDownloadBegin ( ) |
---|
Method called for first response handling to mark download begin, setup file strean & perform first response callback on main thread. |
override void Meta.Voice.Net.WebSockets.Requests.WitWebSocketTtsRequest.HandleComplete ( ) |
---|
Callback when last chunk has been downloaded |