how to hide ok glass label from google glass voice menu

可紊 提交于 2019-12-11 08:36:06

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/24808603/how-to-hide-ok-glass-label-from-google-glass-voice-menu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!