Android: Speech to text?

4.4k Views Asked by At

Ive had a look at the following sample code: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/VoiceRecognition.html

But i cant get it to run on the emulator. Is the layout.xml avaible for this file? Do i need to install another app in order for this one to work? All i want is a simple demo that prints out the words that the app have recognized. Thanks

2

There are 2 best solutions below

0
On

If you are using Eclipse ApiDemos is part of the sample apps available through the Android SDK and AVD manager. Open that up and select the sample packages for the Android version you are working with. That will give you what you need.

0
On

These codes do not run in the emulator.. Try running it on an actual device. Since the microphone present in the laptop/desktop is not compatible with the emulator but this is not the case in an actual phone.