Using Android Speech Recognition APIs from Google Glass - android

I'm working to adapt an existing Android application to run on Google Glass, as a proof of concept. I would like to use voice input in my application to replace some features that currently require touch input.
I can deploy my APK to Google Glass and run it without a problem (through ADB), but once it's running, neither Android speech recognition API I've tried works on Glass:
startActivityForResult(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH));
This results in an ActivityNotFoundException ("no activity found to handle intent") when running on Google Glass
SpeechRecognizer.IsRecognitionAvailable(context);
This always returns false on Google Glass.
I'm curious if anyone else has run into these issues or has any suggestions.

To use the standard android speech recognition you have to install/deploy the com.google.android.voicesearch apk package.
I don't know if there is an official way to get this. I just googled the apk file.
Just install it by using adb install < apk-file >
Then you should be able to use the voice recognition feature of android on your glass device.
Another way is to use the very cool features of google glass, e.g. to just say "okay glass" to activate the voice recognition.
But therefore you have to root your device and activate this so called lab-feature.
This side is a good starting point for the activation of lab features: glassxe
I have not tried it by myself but I am going to.

It should be noted that now RecognizerIntent.ACTION_RECOGNIZE_SPEECH just works on Glass and does not require the com.google.android.voicesearch package. If you have installed it, you should uninstall it and use the built-in support.

Related

Seeing with sound software

Does anyone know whether Google Glasses are compatible with vOICe technology? http://www.seeingwithsound.com. An aged aunt, who is almost totally blind, heard about this on the radio. She would like to try it but is too old, frail and unused to technology to set this up or to contemplate walking around with a computer connected to a webcam. If it were possible to load the application into a Google Glass that would be ideal but I do not know if this is possible.
If you go to The vOICe for Android page on that website you linked, it gives information about using vOICe with Google Glass. They list a caveat however:
Please note that the CPU of Google Glass is very slow by today's smartphone standards, such that The vOICe for Android wil appear very sluggish or even unresponsive on Google Glass.
It is possible to do so according to the android page on that website:
http://www.seeingwithsound.com/android.htm
However:
The CPU inbuilt into glass is apparently sluggish and may not be quick enough for her to use it accurately.
Please note that the CPU of Google Glass is very slow by today's smartphone standards, such that The vOICe for Android wil appear very sluggish or even unresponsive on Google Glass. In fact, the Explorer Edition of Google Glass is not really powerful enough yet to deliver a good experience with The vOICe for Android, and future generations of Glass, or its competitors, will hopefully offer
better performance
If you want to continue:
There is a section labelled:
Running The vOICe for Android on Google Glass
This does require use of android SDK tools to install and launch and a larger battery is required.
From a DOS shell on the PC, within the folder where you saved vOICeAndroid.apk apply the command
adb install vOICeAndroid.apk to install The vOICe for Android, followed by adb shell am start -n vOICe.vOICe/.The_vOICe
to launch The vOICe for Android on Glass (and use "adb shell am force-stop vOICe.vOICe" to stop The vOICe). The Glass screen must be on when launching The vOICe, so you may need to tap the touchpad a few times during the launch to avoid the 10 second screen timeout of Glass
If all went well, you should also be able to launch The vOICe for Android while not connected to a PC by saying "OK Glass - start imaging - The vOICe for Android".

How to get Google Speech Recognition Engine in an Android device

I have an Epson Moverio device, which is based on Android, but doesn't come with a speech recognition engine by default. I have successfully installed the Voice Search app and with that, I was able to use google voice recognition in the app I am developing. Now, the problem is that app version I got is kind of old (I think its from 2011, since thats the last update for the Voice Search app ). Is there any other app similar to the Voice Search that I can install and will allow me to use the most recent Google's voice recognition engine?

Voice recognition using Google Glass

Does someone know if the voice recognition of Google Glass is the same voice command as that on Android, or how to install the functionality on an android phone like the Galaxy S4. I think that is the same sdk but I don't know.
My question is because I want to do a program with voice recognition.
Much of what you handle using an Android phone applies, but you should review the Google Glass provided information about voice recognition (https://developers.google.com/glass/develop/gdk/input/voice)

Is it possible to use speech recognition in a device which doesn't have google voice search installed?

I tried using RecognizerIntent to use speech recognition in my android app. But the target device doesn't have Google Voice search installed. Is there any other way I can use speech recognition in an Android device that doesn't have Google Voice installed.
You can try using others libraries, take a look to the next post Can CMU Sphinx be set up to recognize ~200 words. I think that maybe is you are looking for.
You probably first should detect if the user has installed Voice Search on his smartphone. If it doesn't, then redirect it to Google Play to download it.

Converting speech to text

I have already gone through the sample code present in the Android SDK. It tells that you should have voice recognition APK in your device. I tried a lot but could not find any apk. Can anyone suggest which voice recognition APK to install to get voice recognition. My device is a Samsung Galaxy.
Update:
According to this article, Google Voice Search is what you actually need.
The Android SDK makes it easy to integrate speech input directly into your own application—just copy and paste from this sample application to get started. Android is an open platform, so your application can potentially make use of any speech recognition service on the device that's registered to receive a RecognizerIntent. Google's Voice Search application, which is pre-installed on many Android devices, responds to a RecognizerIntent by displaying the "Speak now" dialog and streaming audio to Google's servers—the same servers used when a user taps the microphone button on the search widget or the voice-enabled keyboard. (You can check if Voice Search is installed in Settings ➝ Applications ➝ Manage applications.)
I've used the sample of STT without problems. How they said previously, you have to download it from the Market.
Regards

Categories

Resources