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

Wit Class

Meta::WitAi::Wit extends Meta.WitAi.VoiceService.
Meta::WitAi::Wit extends Meta.WitAi.IWitRuntimeConfigProvider.
Meta::WitAi::Wit extends Meta.WitAi.IWitRuntimeConfigSetter.

Overview

Data Fields

override bool
Active[Get]
override bool
override bool

Object Data

override bool

Public Member Functions

override string
Check for error that will occur if attempting to send data
override string
Check for error that will occur if attempting to activate audio
Activate
( string text,
WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Send text data for NLU processing with custom request options.
Activate
( WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Start listening for sound or speech from the user and start sending data to Wit.ai once sound or speech has been detected.
Activate the microphone and send data for NLU processing immediately without waiting for sound/speech from the user to begin.
override void
Deactivate all requests
override void
Deactivate and abort all requests

Object Data

override void
Awake ( )

Details

Properties

WitRuntimeConfiguration Meta.WitAi.Wit.RuntimeConfiguration
No description available.
override ITranscriptionProvider Meta.WitAi.Wit.TranscriptionProvider
No description available.

Fields

override bool Meta.WitAi.Wit.Active
No description available.
override bool Meta.WitAi.Wit.IsRequestActive
No description available.
override bool Meta.WitAi.Wit.MicActive
No description available.

Object Data

override bool Meta.WitAi.Wit.ShouldSendMicData
No description available.

Member Functions

override string Meta.WitAi.Wit.GetSendError ( )
Check for error that will occur if attempting to send data
Returns
Returns an error if send will not be allowed.
override string Meta.WitAi.Wit.GetActivateAudioError ( )
Check for error that will occur if attempting to activate audio
Returns
Returns an error audio activation should not be allowed.
override VoiceServiceRequest Meta.WitAi.Wit.Activate
( string text,
WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Send text data for NLU processing with custom request options.
Parameters
text
Text to be used for NLU processing
requestOptions
Additional options such as dynamic entities
requestEvents
Events specific to the request's lifecycle
override VoiceServiceRequest Meta.WitAi.Wit.Activate
( WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Start listening for sound or speech from the user and start sending data to Wit.ai once sound or speech has been detected.
Parameters
requestOptions
Additional options such as dynamic entities
requestEvents
Events specific to the request's lifecycle
override VoiceServiceRequest Meta.WitAi.Wit.ActivateImmediately
( WitRequestOptions requestOptions,
VoiceServiceRequestEvents requestEvents )
Activate the microphone and send data for NLU processing immediately without waiting for sound/speech from the user to begin.
Parameters
requestOptions
Additional options such as dynamic entities
requestEvents
Events specific to the request's lifecycle
override void Meta.WitAi.Wit.Deactivate ( )
Deactivate all requests
override void Meta.WitAi.Wit.DeactivateAndAbortRequest ( )
Deactivate and abort all requests

Object Data

override void Meta.WitAi.Wit.Awake ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon