API reference
API reference
Select your platform
No SDKs available
No versions available

WitTTSVRequest Class

A WitVRequest subclass for handling requests
Meta::WitAi::Requests::WitTTSVRequest extends Meta.WitAi.Requests.WitVRequest.

Overview

Properties

string
Dictionary< string, string >
TtsData[Get]
bool
Stream[Get]
bool

Public Member Functions

WitTTSVRequest
( IWitRequestConfiguration configuration,
string requestId,
string textToSpeak,
Dictionary< string, string > ttsData,
TTSWitAudioType audioFileType,
bool audioStream,
bool useEvents,
RequestProgressDelegate onDownloadProgress,
RequestFirstResponseDelegate onFirstResponse )
Constructor for wit based text-to-speech VRequests
string
RequestStream
( AudioSampleDecodeDelegate onSamplesDecoded,
AudioJsonDecodeDelegate onJsonDecoded,
RequestCompleteDelegate< bool > onComplete )
Performs a wit tts request that streams audio data into the provided audio clip stream.
string
RequestDownload
( string downloadPath,
RequestCompleteDelegate< bool > onComplete )
Performs a wit tts request that streams audio data into the a specific path on disk.

Object Data

override Dictionary< string, string >

Static Public Member Functions

static string
GetWebErrors
( string textToSpeak,
IWitRequestConfiguration configuration )
Method for determining if there are problems that will arise with performing a web request prior to doing so

Details

Properties

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.

Member Functions

Meta.WitAi.Requests.WitTTSVRequest.WitTTSVRequest
( IWitRequestConfiguration configuration,
string requestId,
string textToSpeak,
Dictionary< string, string > ttsData,
TTSWitAudioType audioFileType,
bool audioStream,
bool useEvents,
RequestProgressDelegate onDownloadProgress,
RequestFirstResponseDelegate onFirstResponse )
Constructor for wit based text-to-speech VRequests
Parameters
configuration
The configuration interface to be used
requestId
A unique identifier that can be used to track the request
textToSpeak
The text to be spoken by the request
ttsData
The text parameters used for the request
audioFileType
The expected audio file type of the request
audioStream
Whether the audio should be played while streaming or should wait until completion.
useEvents
Whether or not events should be requested with this audio request
onDownloadProgress
The callback for progress related to downloading
onFirstResponse
The callback for the first response of data from a request
string Meta.WitAi.Requests.WitTTSVRequest.RequestStream
( AudioSampleDecodeDelegate onSamplesDecoded,
AudioJsonDecodeDelegate onJsonDecoded,
RequestCompleteDelegate< bool > onComplete )
Performs a wit tts request that streams audio data into the provided audio clip stream.
Parameters
onSamplesDecoded
Called one or more times as audio samples are decoded.
onJsonDecoded
Called one or more times as json data is decoded.
onComplete
Called when the audio request has completed
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
onComplete
The callback when the clip is either completely downloaded or failed to download
Returns
An error string if applicable

Object Data

override Dictionary<string, string> Meta.WitAi.Requests.WitTTSVRequest.GetHeaders ( )
No description available.

Static Member Functions

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
Did you find this page helpful?