Sdílet prostřednictvím


SpeechRecognizer.StartListening(Intent) Method

Definition

Starts listening for speech.

[Android.Runtime.Register("startListening", "(Landroid/content/Intent;)V", "GetStartListening_Landroid_content_Intent_Handler")]
public virtual void StartListening (Android.Content.Intent? recognizerIntent);
[<Android.Runtime.Register("startListening", "(Landroid/content/Intent;)V", "GetStartListening_Landroid_content_Intent_Handler")>]
abstract member StartListening : Android.Content.Intent -> unit
override this.StartListening : Android.Content.Intent -> unit

Parameters

recognizerIntent
Intent

contains parameters for the recognition to be performed. The intent may also contain optional extras, see RecognizerIntent. If these values are not set explicitly, default values will be used by the recognizer.

Attributes

Remarks

Starts listening for speech. Please note that #setRecognitionListener(RecognitionListener) should be called beforehand, otherwise no notifications will be received.

Java documentation for android.speech.SpeechRecognizer.startListening(android.content.Intent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to