This sounds like it would be covered by contextual voice commands. This isn't supported yet, but you may want to follow issue 273 on our issue tracker so you can get updates as the GDK evolves.
Google Glass: voice command in activity
-
25-09-2022 - |
質問
I am trying to figure out how to make a voice command possible in an activity itself after the Glassware has already started. For example, after you take a picture you can use the OK, Glass
share with
commands.
I want the voice commands to be possible in a certain activity after launching the Glassware.
I've checked the documentation on Google, but couldn't find one that relates to what I need.
Thank you.
解決
他のヒント
With XE19 contextual voice command is available, you need to add this line :
getWindow().requestFeature(WindowUtils.FEATURE_VOICE_COMMANDS);
Then set up a menu to show.
Here is the documentation from Google : https://developers.google.com/glass/develop/gdk/voice#contextual_voice_commands
所属していません StackOverflow