Added in API level XE12
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 | ACTIONVOICETRIGGER | Intent action for a component triggerable by voice. |
String | EXTRAINPUTSPEECH | String extra storing the recognized speech. |
Inherited Methods | |
---|---|
From class java.lang.Object | |
Object | clone() |
boolean | equals(Object arg0) |
void | finalize() |
final Class<?> | getClass() |
int | hashCode() |
final void | notify() |
final void | notifyAll() |
String | toString() |
final void | wait() |
final void | wait(long arg0, int arg1) |
final void | wait(long arg0) |
Added in API level XE12
Intent action for a component triggerable by voice.
Constant Value: "com.google.android.glass.action.VOICE_TRIGGER”
Added in API level XE12
String extra storing the recognized speech.
Constant Value: "input_speech”
Portions of this page are reproduced from work created and shared by Google and used according to terms described in the Creative Commons 4.0 Attribution License.