語言

RecognitionPart.Builder.SetConfidenceLevel(RecognitionConfidenceLevel) 方法

定義

如果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

參數

value
RecognitionConfidenceLevel

價值屬於以下之一: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

傳回

屬性

備註

如果RecognizerIntent.EXTRA_REQUEST_WORD_CONFIDENCE要求,這部分的信心程度。

否則,這應該等於RecognitionPart.CONFIDENCE_LEVEL_UNKNOWN。

Android 參考資料。android.speech.RecognitionPart.Builder.setConfidenceLevel

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於