zmsoft / google-glass-api

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

SpeechRecognizer not supported #245

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run activity with this line of code boolean speechEnabled = 
SpeechRecognizer.isRecognitionAvailable(this);

What is the expected output? What do you see instead?
speechEnabled should equal true. I get speechEnabled = false

What version of the product are you using? On what operating system?
XE11 - Glass V2

Please provide any additional information below.
As you can see from this SO post ( http://stackoverflow.com/q/17414251/552902 ) 
it can be enabled by installing the missing APK but I argue that this should be 
included by default in the system. The reason, using RecognizerIntent works but 
is not ideals for every case you need speech recognition. SpeechRecognizer 
allows for more fine control of the recognition process in addition to not 
leaving the activity which uses speech recognition.

Original issue reported on code.google.com by j.romero.1214 on 17 Nov 2013 at 4:13

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the feature request! Could you elaborate on your use-case? It will 
help us understand the kind of integration you are looking to build and how we 
can help further down the road.

Best,
Alain

Original comment by ala...@google.com on 21 Nov 2013 at 6:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There are a few things I'm trying to achieve. Ultimately, it's more freedom and 
features with voice recognition such as those present in Android.

1. I would like to use speech recognizing within context such that a custom UI, 
content, etc can be present while the speech recognition is used. Additionally, 
in the future of theming and branding apps I can foresee it an issue to have 
the user jump out of brand to enable speech recognition. With very limited 
input types and voice being a large seller, it still is a shortcoming for app 
development. If the following feature becomes available it might partially 
solve this issue 
(http://stackoverflow.com/questions/20180049/create-ok-glass-style-menu-within-g
lass-app).

2. RecognizerIntent seems to be a little crippled, at least I'm not able to get 
a list of available languages although I have tested (guessing) that there is 
at lease two, english and spanish. With VoiceSearch.apk there are a ton of 
available languages but so far with what I've been able to test it appears that 
the built in RecognizerIntent is extremely limited on Glass. See SO: 
http://stackoverflow.com/questions/20185593/gdk-recognizerintent-action-get-lang
uage-details-fails.

Original comment by j.romero.1214 on 25 Nov 2013 at 6:02

GoogleCodeExporter commented 9 years ago
Agreed.  I have a color specific app, while the custom UI is running I'd like 
to be able to say: "Red, green, blue" and have the UI update accordingly.

Original comment by sna...@gmail.com on 28 Nov 2013 at 2:47

GoogleCodeExporter commented 9 years ago
Seems that you are mostly looking for contextual voice commands so setting this 
one as duplicate of issue #273

Original comment by ala...@google.com on 3 Dec 2013 at 12:05

GoogleCodeExporter commented 9 years ago
I am building an app where the user needs to read aloud a paragraph that is 
displayed on the screen. I need my activity to be displayed and updated while 
the recognizer is running.

The idea is to display progress as the user is reading, which means I need to 
receive partial results and display a custom view.

Original comment by l...@luke-meyer.com on 10 Dec 2013 at 4:09

GoogleCodeExporter commented 9 years ago
Another possible use case: a camera with voice-activated shutter, for faster 
hands-free picture taking.

Original comment by m...@cameroncurrie.net on 11 Dec 2013 at 7:07

GoogleCodeExporter commented 9 years ago
Doesn't seem like the proposed OK glass contextual voice commands will not be 
able to solve all these use cases, therefore probably shouldn't be a duplicate.

Original comment by j.romero.1214 on 11 Dec 2013 at 9:45

GoogleCodeExporter commented 9 years ago

Original comment by ala...@google.com on 13 Dec 2013 at 4:49

GoogleCodeExporter commented 9 years ago
This is now fixed.

Original comment by eug...@wearableintelligence.com on 2 May 2014 at 9:32

GoogleCodeExporter commented 9 years ago
Not working in XE17 anymore

Original comment by eric.am...@gmail.com on 9 May 2014 at 7:30

GoogleCodeExporter commented 9 years ago
@eric.amram, do you have a stack trace or a clear repro case you can share with 
us?

Thanks!
Alain

Original comment by ala...@google.com on 9 May 2014 at 3:38

GoogleCodeExporter commented 9 years ago
Hi Alain,

I posted details on StackOverflow here:
http://stackoverflow.com/questions/23558412/speechrecognizer-broken-after-google
-glass-xe17-update-how-to-work-around

To be able to access the VoiceEngine would be awesome, we're missing the 
callbacks to the RecognizerListener only

Tell me if you need more info on the case.

Have a great day,
-Eric

Original comment by eric.am...@gmail.com on 9 May 2014 at 3:49

GoogleCodeExporter commented 9 years ago
Btw, issue #273 is also related:

https://code.google.com/p/google-glass-api/issues/detail?id=273

Original comment by eric.am...@gmail.com on 9 May 2014 at 7:59

GoogleCodeExporter commented 9 years ago
;)

Original comment by rantonio...@gmail.com on 9 May 2014 at 8:01

GoogleCodeExporter commented 9 years ago
@eric.amram: let's follow your bug on issue #273 :)

Original comment by ala...@google.com on 9 May 2014 at 10:22

GoogleCodeExporter commented 9 years ago
With pleasure Alain! Let's track this little villain down ;-)

Original comment by eric.am...@gmail.com on 9 May 2014 at 10:55