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 | |
---|---|---|
SrgsOneOf() | Initializes a new instance of the SrgsOneOf class. | |
SrgsOneOf([]) | Initializes a new instance of the SrgsOneOf class from an array of String objects. | |
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
Microsoft.Speech.Recognition.SrgsGrammar Namespace