string | TextToSpeak[Get] |
Dictionary< string, string > | TtsData[Get] |
FileType[Get] | |
bool | Stream[Get] |
bool | UseEvents[Get] |
AudioJsonDecodeDelegate | OnJsonDecoded[Get] |
WitTTSVRequest ( IWitRequestConfiguration configuration, string requestId, string textToSpeak, Dictionary< string, string > ttsData, TTSWitAudioType audioFileType, bool audioStream, RequestProgressDelegate onDownloadProgress, RequestFirstResponseDelegate onFirstResponse, bool useEvents, AudioJsonDecodeDelegate onJsonDecoded ) Constructor for wit based text-to-speech VRequests | |
string | RequestStream ( IAudioClipStream clipStream, RequestCompleteDelegate< IAudioClipStream > onClipReady ) Performs a wit tts request that streams audio data into the provided audio clip stream. |
async Task< RequestCompleteResponse< IAudioClipStream > > | RequestStreamAsync ( IAudioClipStream clipStream ) Performs a wit tts request that streams audio data into the provided audio clip stream & returns once the request is ready |
string | Performs a wit tts request that streams audio data into the a specific path on disk. |
async Task< string > | RequestDownloadAsync ( string downloadPath ) Performs a wit tts request that streams audio data into the a specific path on disk and asynchronously returns any errors encountered once complete |
override Dictionary< string, string > | GetHeaders ( ) |
static string | Method for determining if there are problems that will arise with performing a web request prior to doing so |
static TTSWitAudioType | GetWitAudioType ( AudioType audioType ) |
static AudioType | GetAudioType ( TTSWitAudioType witAudioType ) |
static string | GetAudioMimeType ( TTSWitAudioType witAudioType ) |
static bool | CanStreamAudio ( TTSWitAudioType witAudioType ) Performs a check on whether audio can be streamed or not |
string Meta.WitAi.Requests.WitTTSVRequest.TextToSpeak |
---|
No description available.
|
Dictionary<string, string> Meta.WitAi.Requests.WitTTSVRequest.TtsData |
---|
No description available.
|
TTSWitAudioType Meta.WitAi.Requests.WitTTSVRequest.FileType |
---|
No description available.
|
bool Meta.WitAi.Requests.WitTTSVRequest.Stream |
---|
No description available.
|
bool Meta.WitAi.Requests.WitTTSVRequest.UseEvents |
---|
No description available.
|
AudioJsonDecodeDelegate Meta.WitAi.Requests.WitTTSVRequest.OnJsonDecoded |
---|
No description available.
|
Meta.WitAi.Requests.WitTTSVRequest.WitTTSVRequest ( IWitRequestConfiguration configuration, string requestId, string textToSpeak, Dictionary< string, string > ttsData, TTSWitAudioType audioFileType, bool audioStream, RequestProgressDelegate onDownloadProgress, RequestFirstResponseDelegate onFirstResponse, bool useEvents, AudioJsonDecodeDelegate onJsonDecoded ) |
---|
Constructor for wit based text-to-speech VRequests Parameters configuration The configuration interface to be used requestIdA unique identifier that can be used to track the request textToSpeakThe text to be spoken by the request ttsDataThe text parameters used for the request audioFileTypeThe expected audio file type of the request audioStreamWhether the audio should be played while streaming or should wait until completion. onDownloadProgressThe callback for progress related to downloading onFirstResponseThe callback for the first response of data from a request useEventsWhether or not events should be requested with this audio request OnJsonDecodedAudio event json node return callback |
string Meta.WitAi.Requests.WitTTSVRequest.RequestStream ( IAudioClipStream clipStream, RequestCompleteDelegate< IAudioClipStream > onClipReady ) |
---|
Performs a wit tts request that streams audio data into the provided audio clip stream. Parameters clipStream The audio clip stream used to handle audio data caching onClipReadyThe callback when the audio clip stream is ready for playback Returns An error string if applicable |
async Task<RequestCompleteResponse<IAudioClipStream> > Meta.WitAi.Requests.WitTTSVRequest.RequestStreamAsync ( IAudioClipStream clipStream ) |
---|
Performs a wit tts request that streams audio data into the provided audio clip stream & returns once the request is ready Parameters clipStream The audio clip stream used to handle audio data caching onClipReadyThe callback when the audio clip stream is ready for playback Returns An error string if applicable |
string Meta.WitAi.Requests.WitTTSVRequest.RequestDownload ( string downloadPath, RequestCompleteDelegate< bool > onComplete ) |
---|
Performs a wit tts request that streams audio data into the a specific path on disk. Parameters downloadPath Path to download the audio clip to onCompleteThe callback when the clip is either completely downloaded or failed to download Returns An error string if applicable |
async Task<string> Meta.WitAi.Requests.WitTTSVRequest.RequestDownloadAsync ( string downloadPath ) |
---|
Performs a wit tts request that streams audio data into the a specific path on disk and asynchronously returns any errors encountered once complete Parameters downloadPath Path to download the audio clip to Returns An error string if applicable |
override Dictionary<string, string> Meta.WitAi.Requests.WitTTSVRequest.GetHeaders ( ) |
---|
No description available.
|
static string Meta.WitAi.Requests.WitTTSVRequest.GetWebErrors ( string textToSpeak, IWitRequestConfiguration configuration ) |
---|
Method for determining if there are problems that will arise with performing a web request prior to doing so |
static TTSWitAudioType Meta.WitAi.Requests.WitTTSVRequest.GetWitAudioType ( AudioType audioType ) |
---|
No description available.
|
static AudioType Meta.WitAi.Requests.WitTTSVRequest.GetAudioType ( TTSWitAudioType witAudioType ) |
---|
No description available.
|
static string Meta.WitAi.Requests.WitTTSVRequest.GetAudioMimeType ( TTSWitAudioType witAudioType ) |
---|
No description available.
|
static bool Meta.WitAi.Requests.WitTTSVRequest.CanStreamAudio ( TTSWitAudioType witAudioType ) |
---|
Performs a check on whether audio can be streamed or not |