Share via


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
Public method SrgsItem() Initializes a new instance of the SrgsItem class.
Public method SrgsItem(Int32) Initializes a new instance of the SrgsItem class and specifies the number of times that its contents must be spoken.
Public method SrgsItem(String) Initializes a new instance of the SrgsItem class and specifies its textual contents.
Public method SrgsItem([]) Initializes a new instance of the SrgsItem class and specifies an array of SrgsElement objects to add to this instance.
Public method SrgsItem(Int32, Int32) Initializes a new instance of the SrgsItem class and specifies minimum and maximum repetition counts.
Public method 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.
Public method 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

SrgsItem Class

SrgsItem Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)