Compartilhar via


RecognizerIntent.ExtraConfidenceScores Field

Definition

A float array of confidence scores of the recognition results when performing #ACTION_RECOGNIZE_SPEECH.

[Android.Runtime.Register("EXTRA_CONFIDENCE_SCORES")]
public const string ExtraConfidenceScores;
[<Android.Runtime.Register("EXTRA_CONFIDENCE_SCORES")>]
val mutable ExtraConfidenceScores : string

Field Value

Attributes

Remarks

A float array of confidence scores of the recognition results when performing #ACTION_RECOGNIZE_SPEECH. The array should be the same size as the ArrayList returned in #EXTRA_RESULTS, and should contain values ranging from 0.0 to 1.0, or -1 to represent an unavailable confidence score.

Confidence values close to 1.0 indicate high confidence (the speech recognizer is confident that the recognition result is correct), while values close to 0.0 indicate low confidence.

Returned in the results; not to be specified in the recognition request. This extra is optional and might not be provided. Only present when Activity#RESULT_OK is returned in an activity result.

Java documentation for android.speech.RecognizerIntent.EXTRA_CONFIDENCE_SCORES.

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