Android.Service.Voice Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides services, sessions, requests, and hotword detectors for a voice interaction assistant.
Classes
| Name | Description |
|---|---|
| AlwaysOnHotwordDetector |
A class that lets a VoiceInteractionService implementation interact with always-on keyphrase detection APIs. |
| AlwaysOnHotwordDetector.Callback |
Callbacks for always-on hotword detection. |
| AlwaysOnHotwordDetector.EventPayload |
Additional payload for |
| AlwaysOnHotwordDetector.ModelParamRange |
A ModelParamRange is a representation of supported parameter range for a given loaded model. |
| VisibleActivityInfo |
The class is used to represent a visible activity information. |
| VisibleActivityInfo.InterfaceConsts |
Provides constants from the parcelable interface implemented by visible activity information. |
| VoiceInteractionService |
Top-level service of the current global voice interactor, which is providing
support for hotwording, the back-end of a |
| VoiceInteractionSession |
An active voice interaction session, providing a facility for the implementation to interact with the user in the voice interaction layer. |
| VoiceInteractionSession.AbortVoiceRequest |
A request to report that the current user interaction can not be completed with voice, as per
|
| VoiceInteractionSession.ActivityId |
Represents the id of an assist source activity. |
| VoiceInteractionSession.AssistState |
Represents assist state captured when this session was started. |
| VoiceInteractionSession.CommandRequest |
A generic vendor-specific request, as per
|
| VoiceInteractionSession.CompleteVoiceRequest |
A request to simply inform the user that the voice operation has completed, as per
|
| VoiceInteractionSession.ConfirmationRequest |
A request for confirmation from the user of an operation, as per
|
| VoiceInteractionSession.Insets |
Information about where interesting parts of the input method UI appear. |
| VoiceInteractionSession.InterfaceConsts |
Provides memory-trim constants from the component-callback interface implemented by a voice interaction session. |
| VoiceInteractionSession.PickOptionRequest |
A request for the user to pick from a set of option, as per
|
| VoiceInteractionSession.Request |
Base class representing a request from a voice-driver app to perform a particular voice operation with the user. |
| VoiceInteractionSessionService |
An active voice interaction session, initiated by a |
Interfaces
| Name | Description |
|---|---|
| VoiceInteractionSession.IVisibleActivityCallback |
Callback interface for receiving visible activity changes used for assistant usage. |
Enums
| Name | Description |
|---|---|
| AlwaysOnHotwordDetectorAudioCapability |
Specifies audio processing capabilities supported by the hotword detector. |
| HotwordDetectorState |
Enumerates values returned by several methods of HotwordDetectorState and taken as a parameter of the F:Android.Service.Voice.AlwaysOnHotwordDetector+Callback.OnAvailabilityChanged member. |
| ModelType |
Identifies a parameter of a loaded hotword sound model. |
| RecognitionFlag |
Enumerates values returned by the AllowMultipleTriggers, CaptureTriggerAudio, and None members and taken as a parameter of the F:Android.Service.Voice.AlwaysOnHotwordDetector.StartRecognition member. |
| RecognitionMode |
Enumerates values returned by the UserIdentification, and VoiceTrigger members. |
| ShowFlags |
Specifies requested assist data and the source of a voice interaction session's show request. |
| ToucheableInsetsType |
Specifies which area of a voice interaction session window receives touch events. |
Remarks
A voice interaction service starts sessions that interact with the user and handle requests from applications. Sessions can display a user interface, receive assist data, and track visible activities. Hotword detectors report keyphrase availability and recognition events.
These APIs are implemented in the Android voice interaction sources. The .NET binding also provides enum values, string projections of Java character sequences, and nested interface-constant classes.