I have a Google Glass immersion that uses a CardScrollView
to display a series of Cards.
I have created a PanelMenu
that uses contextual voice commands by following Google's documentation.
I am able to jump to specific Cards using voice commands as described in a previous question of mine. The problem is I can only do this by creating a unique menu item for each card, like this:
// Voice-activated menu: Go to Card 1 Go to Card 2 Go to Card 3 ...
This is nice for a proof of concept but is impractical in any real situation. Can I get glass to recognize when I say an arbitrary number? This would ideally mean having a single "Go to Card" command in my menu and leave it clutter free. For example:
// Voice-activated menu: Go to Card X
Where X
can be any integer 1,2,3...
All put together, I would like the interaction to go like this:
1) App opens, displays Card 1 2) User says "ok glass" 3) PanelMenu opens, it displays one item: 'Go to Card' 4) User says "Go to Card 6" 5) App displays Card 6 // reopen PanelMenu... 6) User says "Go to Card 22" 7) App displays Card 22
Issue 273 has numerous links regarding Contextual Voice Commands, but I can't seem to find anything like what I have described. Any help would be greatly appreciated.