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

WitUnderstandingViewerServiceAPI Class

This class provides a common API for accessing properties and methods of the various *Service classes used in the Understanding Viewer. In order to add support for a new Service type, derive a child class from this one and provide implementations for the getter methods.

Overview

Object Data

bool
Flags to indicate whether or not the component supports voice and/or text activation.
bool
bool
This flag dictates whether or not the service should send a network request as part of its (de)activation handling.

Properties

MonoBehaviour
bool
bool
bool
string
Most services have a common way of querying their service name. For those that don't, override this method. The name is cached after first query.
abstract bool
Active[Get]
abstract bool
abstract bool
OnSend[Get]
abstract UnityEvent

Public Member Functions

WitUnderstandingViewerServiceAPI
( MonoBehaviour serviceComponent )
Constructor.
abstract void
abstract void
Activate
( string text )
abstract void
abstract void

Details

Object Data

bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI._hasVoiceActivation
Flags to indicate whether or not the component supports voice and/or text activation.
bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI._hasTextActivation
No description available.
bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI._shouldSubmitUtterance
This flag dictates whether or not the service should send a network request as part of its (de)activation handling.

Properties

MonoBehaviour Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.ServiceComponent
No description available.
bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.HasVoiceActivation
No description available.
bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.HasTextActivation
No description available.
bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.ShouldSubmitUtterance
No description available.
virtual string Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.ServiceName
Most services have a common way of querying their service name. For those that don't, override this method. The name is cached after first query.
abstract bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.Active
No description available.
abstract bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.MicActive
No description available.
abstract bool Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.IsRequestActive
No description available.
abstract VoiceServiceRequestEvent Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.OnSend
No description available.
abstract WitTranscriptionEvent Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.OnPartialTranscription
No description available.
abstract WitTranscriptionEvent Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.OnFullTranscription
No description available.
abstract UnityEvent Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.OnStoppedListening
No description available.
abstract VoiceServiceRequestEvent Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.OnComplete
No description available.

Member Functions

Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.WitUnderstandingViewerServiceAPI
( MonoBehaviour serviceComponent )
Constructor.
Parameters
serviceComponent
The Service Component (VoiceService, DictationService, etc. this API will wrap.
abstract void Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.Activate ( )
No description available.
abstract void Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.Activate
( string text )
No description available.
abstract void Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.Deactivate ( )
No description available.
abstract void Meta.WitAi.Windows.WitUnderstandingViewerServiceAPI.DeactivateAndAbortRequest ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon