honoru88 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Support for Contextual voice commands in GDK without "ok google" and a new menu #544

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a LiveCard with Contextual voice commands using GDK

What is the expected output? What do you see instead?
I would like to control the app without the "ok google" command and without a 
new menu upon the "ok google".
For example, if I'm using a cooking app that displays recipes, I would to have 
the option to control it using voice commands like: "next step" without saying 
"ok google" each time and seeing a new menu and without the "ok google" caption 
on the lower part of the card.

What version of the product are you using? On what operating system?
Google Glass - XE18.1

Please provide any additional information below.
It is related to 
https://code.google.com/p/google-glass-api/issues/detail?id=273
but not the same thing because the request was for the "ok google" menu.

Original issue reported on code.google.com by moshe.sc...@gmail.com on 16 Jun 2014 at 8:21

GoogleCodeExporter commented 9 years ago
of course, please replace "ok google" with "ok glass" :)

Original comment by moshe.sc...@gmail.com on 16 Jun 2014 at 8:23

GoogleCodeExporter commented 9 years ago
Actually it is already doable with XE19 by using SpeechRecognizer
and setting the wanted commands this way:

        // Voice Engine extra params for SpeechRecognizer
        mSpeechIntent.putExtra( "voiceConfigName",      "YourTag" );        // GlassSpeechRecognizer.EXTRA_VOICE_CONFIG_NAME                        
        // Limit commands
        mSpeechIntent.putExtra( "extraVoiceCommands",   mCommands );        // GlassSpeechRecognizer.EXTRA_VOICE_COMMANDS

with String[] mCommands

=> The case can be closed if and only if the GlassSpeechRecognizer constants 
are made public!!

Original comment by eric.am...@gmail.com on 20 Aug 2014 at 1:44

GoogleCodeExporter commented 9 years ago
Any news for this issue? I haven't try eric solution yet, is it still working?

Original comment by rizki....@gmail.com on 8 Apr 2015 at 4:32