Dela via


SpeechRecognizer.ConfidenceScores Field

Definition

Key used to retrieve a float array from the Bundle passed to the RecognitionListener#onResults(Bundle) and RecognitionListener#onPartialResults(Bundle) methods.

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

Field Value

Attributes

Remarks

Key used to retrieve a float array from the Bundle passed to the RecognitionListener#onResults(Bundle) and RecognitionListener#onPartialResults(Bundle) methods. The array should be the same size as the ArrayList provided in #RESULTS_RECOGNITION, 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.

This value is optional and might not be provided.

Java documentation for android.speech.SpeechRecognizer.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