Home | History | Annotate | Download | only in app

Lines Matching defs:recognizerIntent

23 import android.speech.RecognizerIntent;
617 * Sets the text of the search query based on the {@link RecognizerIntent#EXTRA_RESULTS} in
625 ArrayList<String> matches = intent.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
633 * Built from the base {@link RecognizerIntent#ACTION_RECOGNIZE_SPEECH} plus
637 * <li>{@link RecognizerIntent#EXTRA_LANGUAGE_MODEL} set to
638 * {@link RecognizerIntent#LANGUAGE_MODEL_FREE_FORM}</li>
639 * <li>{@link RecognizerIntent#EXTRA_PARTIAL_RESULTS} set to true</li>
640 * <li>{@link RecognizerIntent#EXTRA_PROMPT} set to the search bar hint text</li>
647 Intent recognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
648 recognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
649 RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
650 recognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);
652 recognizerIntent.putExtra(RecognizerIntent.EXTRA_PROMPT, mSearchBar.getHint());
654 recognizerIntent.putExtra(EXTRA_LEANBACK_BADGE_PRESENT, mBadgeDrawable != null);
655 return recognizerIntent;