WitTTSVRequest
(
configuration
, requestId
)
|
Constructor for wit based text-to-speech VRequests
Signature
Meta.WitAi.Requests.WitTTSVRequest.WitTTSVRequest(IWitRequestConfiguration configuration, string requestId) Parameters requestId: string
A unique identifier that can be used to track the request
|
FileType
: TTSWitAudioType
[Get][Set] |
Signature
TTSWitAudioType Meta.WitAi.Requests.WitTTSVRequest.FileType |
Stream
: bool
[Get][Set] |
Signature
bool Meta.WitAi.Requests.WitTTSVRequest.Stream |
TextToSpeak
: string
[Get][Set] |
Signature
string Meta.WitAi.Requests.WitTTSVRequest.TextToSpeak |
TtsParameters
: Dictionary< string, string >
[Get][Set] |
Signature
Dictionary<string, string> Meta.WitAi.Requests.WitTTSVRequest.TtsParameters |
UseEvents
: bool
[Get][Set] |
Signature
bool Meta.WitAi.Requests.WitTTSVRequest.UseEvents |
GetHeaders
()
|
Signature
override Dictionary<string, string> Meta.WitAi.Requests.WitTTSVRequest.GetHeaders() Returns override Dictionary< string, string > |
RequestDownload
(
downloadPath
)
|
Performs a wit tts request that streams audio data into the a specific path on disk.
Signature
async Task<VRequestResponse<bool> > Meta.WitAi.Requests.WitTTSVRequest.RequestDownload(string downloadPath) Parameters downloadPath: string
Path to download the audio clip to
Returns async Task< VRequestResponse< bool > > |
RequestStream
(
onSamplesDecoded
, onJsonDecoded
)
|
Performs a wit tts request that streams audio data into the provided audio clip stream.
Signature
async Task<VRequestResponse<bool> > Meta.WitAi.Requests.WitTTSVRequest.RequestStream(AudioSampleDecodeDelegate onSamplesDecoded, AudioJsonDecodeDelegate onJsonDecoded) Parameters onSamplesDecoded: AudioSampleDecodeDelegate
Called one or more times as audio samples are decoded.
onJsonDecoded: AudioJsonDecodeDelegate
Called one or more times as json data is decoded.
Returns async Task< VRequestResponse< bool > > |
RequestStreamFromDisk
(
diskPath
, onSamplesDecoded
, onJsonDecoded
)
| Requests stream from a disk location
Signature
async Task<VRequestResponse<bool> > Meta.WitAi.Requests.WitTTSVRequest.RequestStreamFromDisk(string diskPath, AudioSampleDecodeDelegate onSamplesDecoded, AudioJsonDecodeDelegate onJsonDecoded) Parameters diskPath: stringonSamplesDecoded: AudioSampleDecodeDelegate
Called one or more times as audio samples are decoded.
onJsonDecoded: AudioJsonDecodeDelegate
Called one or more times as json data is decoded.
Returns async Task< VRequestResponse< bool > > |