Home | History | Annotate | Download | only in app

Lines Matching defs:recognizerIntent

27 import android.speech.RecognizerIntent;
622 * Sets the text of the search query based on the {@link RecognizerIntent#EXTRA_RESULTS} in
630 ArrayList<String> matches = intent.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
638 * Built from the base {@link RecognizerIntent#ACTION_RECOGNIZE_SPEECH} plus
642 * <li>{@link RecognizerIntent#EXTRA_LANGUAGE_MODEL} set to
643 * {@link RecognizerIntent#LANGUAGE_MODEL_FREE_FORM}</li>
644 * <li>{@link RecognizerIntent#EXTRA_PARTIAL_RESULTS} set to true</li>
645 * <li>{@link RecognizerIntent#EXTRA_PROMPT} set to the search bar hint text</li>
652 Intent recognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
653 recognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
654 RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
655 recognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);
657 recognizerIntent.putExtra(RecognizerIntent.EXTRA_PROMPT, mSearchBar.getHint());
659 recognizerIntent.putExtra(EXTRA_LEANBACK_BADGE_PRESENT, mBadgeDrawable != null);
660 return recognizerIntent;