SpeechRecognizer.MaxAlternates 属性

定义

获取或设置共享识别器为每个识别操作返回的备用识别结果的最大数量。Gets or sets the maximum number of alternate recognition results that the shared recognizer returns for each recognition operation.

public:
 property int MaxAlternates { int get(); void set(int value); };
public int MaxAlternates { get; set; }
member this.MaxAlternates : int with get, set
Public Property MaxAlternates As Integer

属性值

Int32

语音识别器返回每个标识操作的替换结果的最大数目。The maximum number of alternate results that the speech recognizer returns for each recognition operation.

注解

Alternates类的属性 RecognitionResult 包含 RecognizedPhrase 对象的集合,这些对象表示输入的其他候选项解释。The Alternates property of the RecognitionResult class contains the collection of RecognizedPhrase objects that represent other candidate interpretations of the input.

的默认值 MaxAlternates 为10。The default value for MaxAlternates is 10.

适用于

另请参阅