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

VoiceServiceRequest Class

Fields

The status code returned from the last request
TaskCompletionSource< bool > PreparationTask[Get]

Protected Fields

override INLPRequestResponseDecoder< WitResponseNode > ResponseDecoder[Get]

Protected Functions

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
Check for ignored error status codes & messages.
Parameters
errorStatusCode
The error status code if applicable
errorMessage
The error to be returned
override bool OnSimulateResponse ( )
override void ApplyResponseData
( WitResponseNode responseData,
bool isFinal )
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
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