SrgsOneOf Constructor

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

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(array<String>[]()[][]) Initializes a new instance of the SrgsOneOf class from an array of String objects.
Public method SrgsOneOf(array<SrgsItem>[]()[][]) 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