Partager via


SpeechRecognizer.RecognitionParts Field

Definition

Key used to receive an ArrayList<RecognitionPart> object from the Bundle passed to the RecognitionListener#onResults(Bundle) and RecognitionListener#onSegmentResults(Bundle) methods.

[Android.Runtime.Register("RECOGNITION_PARTS", ApiSince=34)]
public const string RecognitionParts;
[<Android.Runtime.Register("RECOGNITION_PARTS", ApiSince=34)>]
val mutable RecognitionParts : string

Field Value

Attributes

Remarks

Key used to receive an ArrayList&lt;RecognitionPart&gt; object from the Bundle passed to the RecognitionListener#onResults(Bundle) and RecognitionListener#onSegmentResults(Bundle) methods.

A single SpeechRecognizer result is represented as a String. Each word of the resulting String, as well as any potential adjacent punctuation, is represented by a RecognitionPart item from the ArrayList retrieved by this key.

Java documentation for android.speech.SpeechRecognizer.RECOGNITION_PARTS.

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