Hi vamsi, you should of course specify some integer value representing the silence length in milliseconds. For example:
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS, 1000); intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 2000); Try to experiment with the numbers (1000 and 2000) and with presence of only one of the extras or their combination. Best regards, Filip Havlicek 2011/3/23 vamsi <shailajamudathanapa...@gmail.com> > Thanks Filip Havlicek, > > I found those string constants in android documentation previously. > And tried to use those elements in my app. > Following is my code, > > public static final String > EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS = > > "android.speech.extras.SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS"; > > Intent intent = new > Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); > > > intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS, > EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS ); > > But, i did not see any improvement. Am i doing correct or did i do any > mistake. > Please let me know. > > Thanks > vamsi > > On Mar 22, 5:01 pm, Filip Havlicek <havlicek.fi...@gmail.com> wrote: > > Hi vamsi, > > > > check this RecognizerIntent extrahttp:// > developer.android.com/reference/android/speech/RecognizerInten... > > > > Best regards, > > Filip Havlicek > > > > 2011/3/22 vamsi <shailajamudathanapa...@gmail.com> > > > > > > > > > > > > > > > > > Hi > > > > > In android voice recognition, Can any one know how to increase the > > > amount of time that it should take after we stop hearing speech to > > > consider the input possibly complete. I need to prevent the endpointer > > > cutting off during very short mid-speech pauses while voice > > > recognition. If anyone knows the solution, please give reply. Any > > > response would be appreciated. > > > > > thanks in advance > > > > > -- > > > 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 > > -- > 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 > -- 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