Skip to content

SL4A SpeechRecognitionFacade

michael edited this page Nov 9, 2015 · 1 revision

A facade containing RPC implementations related to the speech-to-text functionality of Android.

recognizeSpeech Recognizes user\'s speech and returns the most likely result.
prompt (String) text prompt to show to the user when asking them to speak (optional)
language (String) language override to inform the recognizer that it should expect speech in a language different than the one set in the java.util.Locale.getDefault() (optional)
languageModel (String) informs the recognizer which speech model to prefer (see android.speech.RecognizeIntent) (optional)
returns: (String) An empty string in case the speech cannot be recongnized.

Clone this wiki locally