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

WitTTSVRequest Class

Extends WitVRequest
A WitVRequest subclass for handling requests

Properties

string TextToSpeak[Get]
Dictionary< string, string > TtsData[Get]
TTSWitAudioType FileType[Get]
bool Stream[Get]
bool UseEvents[Get]

Member Functions

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
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
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

Protected Functions

virtual override Dictionary< string, string > GetHeaders ( )

Static Member Functions

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?
Thumbs up icon
Thumbs down icon