Språk

RecognitionPart.Builder.SetConfidenceLevel(RecognitionConfidenceLevel) Method

Definition

The level of confidence for this part if requested with RecognizerIntent.EXTRA_REQUEST_WORD_CONFIDENCE.

[Android.Runtime.Register("setConfidenceLevel", "(I)Landroid/speech/RecognitionPart$Builder;", "", ApiSince=34)]
public Android.Speech.RecognitionPart.Builder SetConfidenceLevel(Android.Speech.RecognitionConfidenceLevel value);
[<Android.Runtime.Register("setConfidenceLevel", "(I)Landroid/speech/RecognitionPart$Builder;", "", ApiSince=34)>]
member this.SetConfidenceLevel : Android.Speech.RecognitionConfidenceLevel -> Android.Speech.RecognitionPart.Builder

Parameters

value
RecognitionConfidenceLevel

Value is one of the following: RecognitionPart.CONFIDENCE_LEVEL_UNKNOWN; RecognitionPart.CONFIDENCE_LEVEL_LOW; RecognitionPart.CONFIDENCE_LEVEL_MEDIUM_LOW; RecognitionPart.CONFIDENCE_LEVEL_MEDIUM; RecognitionPart.CONFIDENCE_LEVEL_MEDIUM_HIGH; RecognitionPart.CONFIDENCE_LEVEL_HIGH

Returns

Attributes

Remarks

The level of confidence for this part if requested with RecognizerIntent.EXTRA_REQUEST_WORD_CONFIDENCE.

Otherwise, this should equal RecognitionPart.CONFIDENCE_LEVEL_UNKNOWN.

Android reference for android.speech.RecognitionPart.Builder.setConfidenceLevel.

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