Stay organized with collections
Save and categorize content based on your preferences.
android.service.voice
Interfaces
Classes
VisibleActivityInfo |
The class is used to represent a visible activity information.
|
VoiceInteractionService |
Top-level service of the current global voice interactor, which is providing
support for hotwording, the back-end of a VoiceInteractor , etc.
|
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
VoiceInteractor.AbortVoiceRequest .
|
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
VoiceInteractor.CommandRequest .
|
VoiceInteractionSession.CompleteVoiceRequest |
A request to simply inform the user that the voice operation has completed, as per
VoiceInteractor.CompleteVoiceRequest .
|
VoiceInteractionSession.ConfirmationRequest |
A request for confirmation from the user of an operation, as per
VoiceInteractor.ConfirmationRequest .
|
VoiceInteractionSession.Insets |
Information about where interesting parts of the input method UI appear.
|
VoiceInteractionSession.PickOptionRequest |
A request for the user to pick from a set of option, as per
VoiceInteractor.PickOptionRequest .
|
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 VoiceInteractionService .
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.service.voice\n\nAdded in [API level 21](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nandroid.service.voice\n=====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/service/voice/package-summary \"View this page in Kotlin\") \\|Java\n\nInterfaces\n----------\n\n|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|\n| [VoiceInteractionSession.VisibleActivityCallback](/reference/android/service/voice/VoiceInteractionSession.VisibleActivityCallback) | Callback interface for receiving visible activity changes used for assistant usage. |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [VisibleActivityInfo](/reference/android/service/voice/VisibleActivityInfo) | The class is used to represent a visible activity information. |\n| [VoiceInteractionService](/reference/android/service/voice/VoiceInteractionService) | Top-level service of the current global voice interactor, which is providing support for hotwording, the back-end of a [VoiceInteractor](/reference/android/app/VoiceInteractor), etc. |\n| [VoiceInteractionSession](/reference/android/service/voice/VoiceInteractionSession) | An active voice interaction session, providing a facility for the implementation to interact with the user in the voice interaction layer. |\n| [VoiceInteractionSession.AbortVoiceRequest](/reference/android/service/voice/VoiceInteractionSession.AbortVoiceRequest) | A request to report that the current user interaction can not be completed with voice, as per [VoiceInteractor.AbortVoiceRequest](/reference/android/app/VoiceInteractor.AbortVoiceRequest). |\n| [VoiceInteractionSession.ActivityId](/reference/android/service/voice/VoiceInteractionSession.ActivityId) | Represents the id of an assist source activity. |\n| [VoiceInteractionSession.AssistState](/reference/android/service/voice/VoiceInteractionSession.AssistState) | Represents assist state captured when this session was started. |\n| [VoiceInteractionSession.CommandRequest](/reference/android/service/voice/VoiceInteractionSession.CommandRequest) | A generic vendor-specific request, as per [VoiceInteractor.CommandRequest](/reference/android/app/VoiceInteractor.CommandRequest). |\n| [VoiceInteractionSession.CompleteVoiceRequest](/reference/android/service/voice/VoiceInteractionSession.CompleteVoiceRequest) | A request to simply inform the user that the voice operation has completed, as per [VoiceInteractor.CompleteVoiceRequest](/reference/android/app/VoiceInteractor.CompleteVoiceRequest). |\n| [VoiceInteractionSession.ConfirmationRequest](/reference/android/service/voice/VoiceInteractionSession.ConfirmationRequest) | A request for confirmation from the user of an operation, as per [VoiceInteractor.ConfirmationRequest](/reference/android/app/VoiceInteractor.ConfirmationRequest). |\n| [VoiceInteractionSession.Insets](/reference/android/service/voice/VoiceInteractionSession.Insets) | Information about where interesting parts of the input method UI appear. |\n| [VoiceInteractionSession.PickOptionRequest](/reference/android/service/voice/VoiceInteractionSession.PickOptionRequest) | A request for the user to pick from a set of option, as per [VoiceInteractor.PickOptionRequest](/reference/android/app/VoiceInteractor.PickOptionRequest). |\n| [VoiceInteractionSession.Request](/reference/android/service/voice/VoiceInteractionSession.Request) | Base class representing a request from a voice-driver app to perform a particular voice operation with the user. |\n| [VoiceInteractionSessionService](/reference/android/service/voice/VoiceInteractionSessionService) | An active voice interaction session, initiated by a [VoiceInteractionService](/reference/android/service/voice/VoiceInteractionService). |\n\n-\n\n Interfaces\n ----------\n\n - [VoiceInteractionSession.VisibleActivityCallback](/reference/android/service/voice/VoiceInteractionSession.VisibleActivityCallback)\n-\n\n Classes\n -------\n\n - [VisibleActivityInfo](/reference/android/service/voice/VisibleActivityInfo)\n - [VoiceInteractionService](/reference/android/service/voice/VoiceInteractionService)\n - [VoiceInteractionSession](/reference/android/service/voice/VoiceInteractionSession)\n - [VoiceInteractionSession.AbortVoiceRequest](/reference/android/service/voice/VoiceInteractionSession.AbortVoiceRequest)\n - [VoiceInteractionSession.ActivityId](/reference/android/service/voice/VoiceInteractionSession.ActivityId)\n - [VoiceInteractionSession.AssistState](/reference/android/service/voice/VoiceInteractionSession.AssistState)\n - [VoiceInteractionSession.CommandRequest](/reference/android/service/voice/VoiceInteractionSession.CommandRequest)\n - [VoiceInteractionSession.CompleteVoiceRequest](/reference/android/service/voice/VoiceInteractionSession.CompleteVoiceRequest)\n - [VoiceInteractionSession.ConfirmationRequest](/reference/android/service/voice/VoiceInteractionSession.ConfirmationRequest)\n - [VoiceInteractionSession.Insets](/reference/android/service/voice/VoiceInteractionSession.Insets)\n - [VoiceInteractionSession.PickOptionRequest](/reference/android/service/voice/VoiceInteractionSession.PickOptionRequest)\n - [VoiceInteractionSession.Request](/reference/android/service/voice/VoiceInteractionSession.Request)\n - [VoiceInteractionSessionService](/reference/android/service/voice/VoiceInteractionSessionService)"]]