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

VoiceService Class

Properties

When set to true, the service will use platform integration.
Wit configuration accessor via IWitConfigurationProvider
The Conduit-based dispatcher that dispatches incoming invocations based on a manifest.
Gets/Sets a custom transcription provider. This can be used to replace any built in asr with an on device model or other provided source
Returns true if this voice service is currently reading data from the microphone
VoiceEvents VoiceEvents[Get]
TelemetryEvents TelemetryEvents[Get]
Returns true if the audio input should be read in an activation

Protected Fields

This field should not be accessed outside the Wit-Unity library. If you need access to events you should be using the VoiceService.VoiceEvents property instead.
summary> Internal events used to report telemetry. These events are reserved for internal use only and should not be used for any other purpose.
TelemetryEvents telemetryEvents[Get]

Fields

Returns true if the service is actively communicating with Wit.ai during an Activation. The mic may or may not still be active while this is true.
A subset of events around collection of audio data
A subset of events around receiving transcriptions

Protected Functions

If applicable, get all speech events
Constructs a VoiceService
virtual override void OnRequestPartialResponse
( VoiceServiceRequest request )
virtual void OnValidateEarly
( VoiceServiceRequest request )
virtual void Awake ( )
On enable, begin watching for request initialized callbacks
On enable, stop watching for request initialized callbacks
Activate message if transcription provider returns a final transcription
virtual void HandleResponse
( WitResponseNode response )

Member Functions

Send text data for NLU processing. Results will return the same way a voice based activation would.
Parameters
text
Text to be used for NLU processing
Send text data for NLU processing. Results will return the same way a voice based activation would.
Parameters
text
Text to be used for NLU processing
requestOptions
Additional options such as dynamic entities
Send text data for NLU processing. Results will return the same way a voice based activation would.
Parameters
text
Text to be used for NLU processing
requestEvents
Events specific to the request's lifecycle
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
Start listening for sound or speech from the user and start sending data to Wit.ai once sound or speech has been detected.
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
Start listening for sound or speech from the user and start sending data to Wit.ai once sound or speech has been detected.
Parameters
requestEvents
Events specific to the request's lifecycle
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
Activate the microphone and send data for NLU processing immediately without waiting for sound/speech from the user to begin.
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
Activate the microphone and send data for NLU processing immediately without waiting for sound/speech from the user to begin.
Parameters
requestEvents
Events specific to the request's lifecycle
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
Returns objects of the specified type.
Parameters
type
The type.
Returns
Objects of the specified type.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon