You still can't give the speech recognizer a grammar, so you can't tell it what to expect. You are right though, even some canned, yes/no/ cancel or digit recognizers would be a huge help. Android has an AlertDialogBuilder, why not have a SpeechDialogBuilder with some simple options?
The good news is that it appears that the 2.2 api does give us far greater control over the recognition dialog. For that I am quite overjoyed. On May 26, 5:18 pm, moa <mich...@jixel.com> wrote: > have the 2.2 api changes done anything to help with this? > > Another feature I always wanted was the ability to define the valid > responses for the engine to match against; yes/no and so. so you don;t > get things like "snow" coming back as a response. > > Also, defining "digit" recognition only and so. > > Don't see any movement on this yet :( > > On May 19, 1:10 am,GregM<grego...@gmail.com> wrote: > > > > > I had this same problem. Since the speechrecognitionrequires > > 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 > > speechrecognitionto 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 speechrecognitionapp 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 > > > > >recognitiondemo"); > > > > > 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 > > 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