SpeechRecognizer.ConfidenceScores 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于从传递给和RecognitionListener#onPartialResults(Bundle)
方法的Bundle
浮点数组中检索浮点数组的RecognitionListener#onResults(Bundle)
键。
[Android.Runtime.Register("CONFIDENCE_SCORES")]
public const string ConfidenceScores;
[<Android.Runtime.Register("CONFIDENCE_SCORES")>]
val mutable ConfidenceScores : string
字段值
- 属性
注解
用于从传递给和RecognitionListener#onPartialResults(Bundle)
方法的Bundle
浮点数组中检索浮点数组的RecognitionListener#onResults(Bundle)
键。 数组的大小应与提供的 #RESULTS_RECOGNITION
ArrayList 相同,并且应包含介于 0.0 到 1.0 的值或 -1 的值,表示不可用的置信度分数。
置信度值接近 1.0 表示高置信度(语音识别器确信识别结果正确),而接近 0.0 的值表示低置信度。
此值是可选的,可能无法提供。
适用于 . 的 android.speech.SpeechRecognizer.CONFIDENCE_SCORES
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。