Voice Recognition Development - problems working with SDK/emulator

by tonym » Wed, 30 Jun 2010 02:52:32 GMT


Sponsored Links
 I'm attempting to create an application that utilizes the speech
recognizer (which is referenced how to use here [1]), but I am having
issues getting it to work with the emulator. I've gotten to the point
where I needed to install Voice Search and implement the
RecognizerIntent class, but as soon as I make it begin recognizing it
will stop unexpectedly and require me to force close it. In fact,
opening the Voice Search app by itself causes a crash.

Is there any way to get this to work in the emulator? I don't own an
android device, but I'd still want to develop the app on my computer
if at all possible.

Secondly, is there any way to connect a microphone to my computer and
have the emulator pick up the sound?

Thanks for the help,
tonym

[1]  http://developer.android.com/resources/articles/speech-input.html 

--



Other Threads

1. How to create and open an SQLite database? (Based on NotePad tutorial)

check your table creation statements within onCreate()



--~--~---------~--~----~------------~-------~--~----~

2. Soft keypad not appearing for edit text-Urgent

Hi,

I have an application that has 2 AutoComplete TextViews on a single screen.
I have just upgraded the application from 1.0 to 1.5 and I am facing 2
issues here:
1. I get soft keypad for only one of the text view. Wat could be the problem
with the other one?
2. For the text view that i get soft keypad,on entering data into the text
view using soft key pad, i get the below exception

*05-05 11:01:17.465: ERROR/AndroidRuntime(274): Uncaught handler: thread
main exiting due to uncaught exception
05-05 11:01:17.645: ERROR/AndroidRuntime(274): java.lang.StackOverflowError
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.text.SpannableStringBuilder.getSpans(SpannableStringBuilder.java:783)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.text.Styled.each(Styled.java:43)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.text.Styled.foreach(Styled.java:249)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.text.Styled.drawText(Styled.java:302)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.text.Layout.drawText(Layout.java:1346)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.text.Layout.draw(Layout.java:339)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.widget.TextView.onDraw(TextView.java:3924)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.View.draw(View.java:5838)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.View.draw(View.java:5841)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1898)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewRoot.draw(ViewRoot.java:1217)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.os.Handler.dispatchMessage(Handler.java:99)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.os.Looper.loop(Looper.java:123)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
java.lang.reflect.Method.invokeNative(Native Method)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
java.lang.reflect.Method.invoke(Method.java:521)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
dalvik.system.NativeStart.main(Native Method)


*Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~

3. how to get href value of a html file loaded on webview

4. Get image URI from camera?

5. How to implement a button in a widget

6. Android 2d Shooter Game AirAttack Follow My Blog!

7. Users get message that application is not properly signed when updating - anyone had the same issue?