Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SrgsItem Constructor
Include Protected Members
Include Inherited Members
Initializes a new instance of the SrgsItem class.
Overload List
Name | Description | |
---|---|---|
SrgsItem() | Initializes a new instance of the SrgsItem class. | |
SrgsItem(Int32) | Initializes a new instance of the SrgsItem class and specifies the number of times that its contents must be spoken. | |
SrgsItem(String) | Initializes a new instance of the SrgsItem class and specifies its textual contents. | |
SrgsItem([]) | Initializes a new instance of the SrgsItem class and specifies an array of SrgsElement objects to add to this instance. | |
SrgsItem(Int32, Int32) | Initializes a new instance of the SrgsItem class and specifies minimum and maximum repetition counts. | |
SrgsItem(Int32, Int32, []) | Initializes a new instance of the SrgsItem class, specifies an array of SrgsElement objects to add to this instance, and sets minimum and maximum repetition counts. | |
SrgsItem(Int32, Int32, String) | Initializes a new instance of the SrgsItem class, specifies the text associated with the item, and sets minimum and maximum repetition counts. |
Top
Remarks
This overloaded constructer for SrgsItem initializes the object with a default repeatCount parameter of 0. To set the repeatCount when instantiating an SrgsItem object, use the SrgsItem constructor. To set a range of repeat counts, for example from 2 to 4, use the SrgsItem(Int32, Int32) constructor.
See Also
Reference
Microsoft.Speech.Recognition.SrgsGrammar Namespace