Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SpeechRecognitionEngine.MaxAlternates Property

Gets or sets the maximum number of alternate recognition results that the SpeechRecognitionEngine returns for each recognition operation.

Namespace:  System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

public int MaxAlternates { get; set; }

Property Value

Type: System.Int32
The number of alternate results to return.

ExceptionCondition
ArgumentOutOfRangeException

MaxAlternates is set to a value less than 0.

The Alternates property of the RecognitionResult class contains the collection of RecognizedPhrase objects that represent possible interpretations of the input.

The default value for MaxAlternates is 10.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft