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

IVoiceActivationHandler Interface

Overview

Properties

bool
Active[Get]
Returns true if this voice service is currently active and listening with the mic

Public Member Functions

Activate
( string text,
WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Send text data for NLU processing with custom request options & events.
Activate
( WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Activate the microphone and wait for threshold and then send data
Activate the microphone and send data for NLU processing with custom request options.
void
Stop listening and submit the collected microphone data for processing.
void
Stop listening and abort any requests that may be active without waiting for a response.
void
Deactivate mic & abort a specific request

Details

Properties

bool Meta.WitAi.IVoiceActivationHandler.Active
Returns true if this voice service is currently active and listening with the mic

Member Functions

VoiceServiceRequest Meta.WitAi.IVoiceActivationHandler.Activate
( string text,
WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Send text data for NLU processing with custom request options & events.
Parameters
text
Text to be used for NLU processing
requestOptions
Additional options such as dynamic entities
requestEvents
Events specific to the request's lifecycle
VoiceServiceRequest Meta.WitAi.IVoiceActivationHandler.Activate
( WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Activate the microphone and wait for threshold and then send data
Parameters
requestOptions
Additional options such as dynamic entities
requestEvents
Events specific to the request's lifecycle
VoiceServiceRequest Meta.WitAi.IVoiceActivationHandler.ActivateImmediately
( WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Activate the microphone and send data for NLU processing with custom request options.
Parameters
requestOptions
Additional options such as dynamic entities
requestEvents
Events specific to the request's lifecycle
void Meta.WitAi.IVoiceActivationHandler.Deactivate ( )
Stop listening and submit the collected microphone data for processing.
void Meta.WitAi.IVoiceActivationHandler.DeactivateAndAbortRequest ( )
Stop listening and abort any requests that may be active without waiting for a response.
void Meta.WitAi.IVoiceActivationHandler.DeactivateAndAbortRequest
( VoiceServiceRequest request )
Deactivate mic & abort a specific request
Did you find this page helpful?
Thumbs up icon
Thumbs down icon