Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SrgsOneOf Constructor

Include Protected Members
Include Inherited Members

Creates a new instance of the SrgsOneOf class.

Overload List

  Name Description
Public method SrgsOneOf() Initializes a new instance of the SrgsOneOf class.
Public method SrgsOneOf([]) Initializes a new instance of the SrgsOneOf class from an array of String objects.
Public method SrgsOneOf([]) Initializes a new instance of the SrgsOneOf class, specifying one or more alternative items in the passed SrgsItem array.

Top

Remarks

You can construct an instance of the SrgsOneOf class from an array of String objects, from an array of SrgsItem objects, or as an empty list. Using SrgsItem objects instead of String objects in a list of alternatives lets you apply properties of SrgsItem to each item in the list, such as MinRepeat, MaxRepeat, RepeatProbability, and Weight.

See Also

Reference

SrgsOneOf Class

SrgsOneOf Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)