I had this same problem. Since the speech recognition requires
clicking the dialog window when an error occurs, my app cannot be
truely hands free. This is a big problem if you are trying to use
speech recognition to save the user from having to look at the device.

Calling finishactivity works but I hope google will add better
controls in the future.

Greg

On May 18, 12:48 pm, pac <patty.c...@gmail.com> wrote:
> Thanks for your information.
>
> I ended up having the app sleep for several seconds and then do a
> finishActivity() because if nothing happened by then, some error must
> have occurred.
>
> On Apr 20, 2:28 pm, Dianne Hackborn <hack...@android.com> wrote:
>
>
>
>
>
> > Sorry, the current API does not provide this kind of control.
>
> > On Tue, Apr 20, 2010 at 10:45 AM, pac <patty.c...@gmail.com> wrote:
> > > My speech recognition app needs to work without human intervention, so
> > > the situations where the "No speech heard" or the "No matches found"
> > > dialogs come up and require a button press are a problem.
>
> > > Is there a way to prevent this dialog from displaying?
>
> > > Is there a way to programming perform the button click?
>
> > > Is there a way to programmatically close the dialog?
>
> > > This is how I'm firing the RecognizerIntent:
>
> > >        Intent intent= new
> > > Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
> > >        intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
> > >                        RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
> > >        intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speech
> > > recognition demo");
> > >        startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs
> > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to