1

Hi I am developing a application fro Google glass ,I want to hide the "OK glass" command which is essential to launch the menu on voice command so is there a way in which i can launch a menu options on voice command without saying the " OK glass " keyword every time.

kindly guide me on this.

2 Answers2

0

You cannot do this at the moment using Contextual voice commands. In my opinion, it was for the best, otherwise the Glass user could occasionally select a menu item unintentionally.

Maybe you can implement an alternative using SpeechRecognizer, maybe you'll find this thread a bit helpful.

Community
  • 1
  • 1
Arthur Ferreira
  • 311
  • 1
  • 6
  • 18
0

Here is an example on how to use a decompiled version of the GlassVoice.apk found on Glass:

https://github.com/pscholl/glass_snippets/tree/master/voiceMenu

which allows to display a menu (or not), display "ok glass" (or not) and add hotwords dynamically (or not). Offline without using the SpeechRecognizer API.

pscholl
  • 522
  • 4
  • 6