Condividi tramite


IRecognitionListener.OnSegmentResults(Bundle) Method

Definition

Called for each ready segment of a recognition request.

[Android.Runtime.Register("onSegmentResults", "(Landroid/os/Bundle;)V", "GetOnSegmentResults_Landroid_os_Bundle_Handler:Android.Speech.IRecognitionListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)]
public virtual void OnSegmentResults (Android.OS.Bundle segmentResults);
[<Android.Runtime.Register("onSegmentResults", "(Landroid/os/Bundle;)V", "GetOnSegmentResults_Landroid_os_Bundle_Handler:Android.Speech.IRecognitionListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)>]
abstract member OnSegmentResults : Android.OS.Bundle -> unit
override this.OnSegmentResults : Android.OS.Bundle -> unit

Parameters

segmentResults
Bundle

the returned results. To retrieve the results in ArrayList&lt;String&gt; format use Bundle#getStringArrayList(String) with SpeechRecognizer#RESULTS_RECOGNITION as a parameter

Attributes

Remarks

Called for each ready segment of a recognition request. To request segmented speech results use RecognizerIntent#EXTRA_SEGMENTED_SESSION. The callback might be called any number of times between #onReadyForSpeech(Bundle) and #onEndOfSegmentedSession().

Java documentation for android.speech.RecognitionListener.onSegmentResults(android.os.Bundle).

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