Search code examples
androidgoogle-glass

Google Glass - Does every app need to register a voice trigger with Google?


I am trying to incorporate launch voice trigger in my Android application. Another post Why is my voice command missing from the ok glass menu in XE16? was quite helpful to get me started.

There is a limited set of predefined voice commands. However, most apps have a unique app name. The list of predefined command cannot possibly cater to each application. For example, if I am working on an application called "Very Angry Birds," I cannot possibly submit a request to Google team to add this voice trigger. Is there a generic trigger that one can incorporate to help launch a specific application? Regards.


Solution

  • Glass takes a slightly different approach to user interaction. Instead of thinking about "what app to launch?" it focuses on "what action does the user want to do?" Similar to intents, if no other app is registered for the voice command, it will direct the command to the one registered app. If more than one is registered, Glass will prompt for which app to use to complete the command.

    Using your example, someone could say "Ok Glass, play a game, very angry birds".

    The list of available voice commands are at https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/app/VoiceTriggers.Command. If there are other commands you think would be useful, review the checklist at https://developers.google.com/glass/distribute/voice-checklist and request the command at https://developers.google.com/glass/distribute/voice-form