Page Summary
-
The content discusses constants for registering Glassware with the main voice menu.
-
Glassware can be started from the main voice menu by declaring an intent filter for the
com.google.android.glass.action.VOICE_TRIGGERintent action. -
Glassware can optionally declare a voice input prompt to obtain speech input, with the transcribed text available in the
EXTRA_INPUT_SPEECHintent extra. -
The
VoiceTriggers.Commandnested class represents the list of available system voice commands.
Constants for registering Glassware with the main voice menu.
Users can start your Glassware from the main voice menu if you
declare an intent filter that registers for the
com.google.android.glass.action.VOICE_TRIGGER intent
action in your activity or service.
Glassware can also declare an optional voice input prompt when it launches
to obtain speech input. You can obtain the transcribed text from the
EXTRA_INPUT_SPEECH intent extra.
For more information on how to use the constants in this class, see the Starting Glassware developer guide.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enum | VoiceTriggers.Command | Represents the list of system voice commands available. | |||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | ACTION_VOICE_TRIGGER | Intent action for a component triggerable by voice. | |||||||||
| String | EXTRA_INPUT_SPEECH | String extra storing the recognized speech. | |||||||||
| Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constants
public static final String ACTION_VOICE_TRIGGER
Intent action for a component triggerable by voice.
public static final String EXTRA_INPUT_SPEECH
String extra storing the recognized speech.