Adding the “ok glass contextual voice menu” within an immersion activity

丶灬走出姿态 提交于 2019-11-29 13:49:49

问题


Is there a way to insert the "ok, glass" trigger into an immersion activity on Glass? I want to make the launch of my application as seamless and quick as possible. Making an immersion application seemed to be the way but I can not find a way to bring up the "ok, glass" footer trigger within my activity to launch my application menu to be navigated hands free. Any clue as to how this works?

Note: I have a voice trigger to launch the app from the Glass home screen.

I'm not creating a card but rather just using an XML layout as I'm changing text on the screen dynamically to user interaction using an AsyncTask. Any advice would be great.


回答1:


Contextual voice commands are not yet supported by the platform, feel free to file a feature request in our issues tracker.

UPDATE: as mentioned in the comments and the other answer, contextual voice commands are now part of the platform for Immersion: https://developers.google.com/glass/develop/gdk/voice#contextual_voice_commands




回答2:


As of XE18.1 and GDK Preview 19, contextual voice commands are available in the GDK. Documentation is available at https://developers.google.com/glass/develop/gdk/voice.



来源:https://stackoverflow.com/questions/20133577/adding-the-ok-glass-contextual-voice-menu-within-an-immersion-activity

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