Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SrgsItem Members
Include Protected Members
Include Inherited Members
Represents a grammar element that contains phrases or other entities that a user can speak to produce a successful recognition.
The SrgsItem type exposes the following members.
Constructors
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
Properties
Name | Description | |
---|---|---|
Elements | Gets the collection of objects contained by the SrgsItem instance. | |
MaxRepeat | Gets the maximum number of times that a user can speak the contents of the SrgsItem. | |
MinRepeat | Gets the minimum number of times that a user can speak the contents of the SrgsItem. | |
RepeatProbability | Gets or sets the probability that a user will repeat the contents of this SrgsItem instance. | |
Weight | Gets or sets a multiplying factor that adjusts the likelihood that an SrgsItem in an SrgsOneOf object will be spoken. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds an object to the collection of objects contained in this SrgsItem instance. | |
CreateObjRef | (inherited from MarshalByRefObject) | |
Equals | (inherited from Object) | |
Finalize | (inherited from Object) | |
GetHashCode | (inherited from Object) | |
GetLifetimeService | (inherited from MarshalByRefObject) | |
GetType | (inherited from Object) | |
InitializeLifetimeService | (inherited from MarshalByRefObject) | |
MemberwiseClone() | (inherited from Object) | |
MemberwiseClone(Boolean) | (inherited from MarshalByRefObject) | |
SetRepeat(Int32) | Sets the number of times that the contents of an SrgsItem must be spoken. | |
SetRepeat(Int32, Int32) | Sets the minimum number of times and the maximum number of times that an item can be spoken. | |
ToString | (inherited from Object) |
Top