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

VoiceServiceRequest Class

Meta::WitAi::Requests::VoiceServiceRequest extends Meta.Voice.NLPRequest< VoiceServiceRequestEvent, WitRequestOptions, VoiceServiceRequestEvents, VoiceServiceRequestResults, WitResponseNode >.

Overview

Data Fields

int
The status code returned from the last request

Object Data

Constructor for Voice Service requests
override bool
void
void
MainThreadCallback
( Action action )
override void
ApplyResponseData
( WitResponseNode responseData,
bool final )
override void
Subscribes or unsubscribes all provided VoiceServiceRequestEvents from this request's VoiceServiceRequestEvents callbacks.
override void
Performs an event callback with this request as the parameter

Details

Fields

int Meta.WitAi.Requests.VoiceServiceRequest.StatusCode
The status code returned from the last request

Object Data

override INLPRequestResponseDecoder<WitResponseNode> Meta.WitAi.Requests.VoiceServiceRequest.ResponseDecoder
No description available.

Object Data

Meta.WitAi.Requests.VoiceServiceRequest.VoiceServiceRequest
( NLPRequestInputType newInputType,
WitRequestOptions newOptions,
Constructor for Voice Service requests
Parameters
newInputType
The request input type (text/audio) to be used
newOptions
The request parameters to be used
newEvents
The request events to be called throughout it's lifecycle
override bool Meta.WitAi.Requests.VoiceServiceRequest.OnSimulateResponse ( )
No description available.
void Meta.WitAi.Requests.VoiceServiceRequest.WatchMainThreadCallbacks ( )
No description available.
void Meta.WitAi.Requests.VoiceServiceRequest.MainThreadCallback
( Action action )
No description available.
override void Meta.WitAi.Requests.VoiceServiceRequest.ApplyResponseData
( WitResponseNode responseData,
bool final )
No description available.
override void Meta.WitAi.Requests.VoiceServiceRequest.SetEventListeners
bool add )
Subscribes or unsubscribes all provided VoiceServiceRequestEvents from this request's VoiceServiceRequestEvents callbacks.
Parameters
newEvents
The events to subscribe or unsubscribe to the request.Events
add
Whether to add listeners or remove listeners
override void Meta.WitAi.Requests.VoiceServiceRequest.RaiseEvent
( VoiceServiceRequestEvent eventCallback )
Performs an event callback with this request as the parameter
Parameters
eventCallback
The voice service request event to be called
Did you find this page helpful?
Thumbs up icon
Thumbs down icon