Share via


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
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

Properties

  Name Description
Public property Elements Gets the collection of objects contained by the SrgsItem instance.
Public property MaxRepeat Gets the maximum number of times that a user can speak the contents of the SrgsItem.
Public property MinRepeat Gets the minimum number of times that a user can speak the contents of the SrgsItem.
Public property RepeatProbability Gets or sets the probability that a user will repeat the contents of this SrgsItem instance.
Public property 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
Public method Add Adds an object to the collection of objects contained in this SrgsItem instance.
Public method CreateObjRef (inherited from MarshalByRefObject)
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetLifetimeService (inherited from MarshalByRefObject)
Public method GetType (inherited from Object)
Public method InitializeLifetimeService (inherited from MarshalByRefObject)
Protected method MemberwiseClone() (inherited from Object)
Protected method MemberwiseClone(Boolean) (inherited from MarshalByRefObject)
Public method SetRepeat(Int32) Sets the number of times that the contents of an SrgsItem must be spoken.
Public method SetRepeat(Int32, Int32) Sets the minimum number of times and the maximum number of times that an item can be spoken.
Public method ToString (inherited from Object)

Top

See Also

Reference

SrgsItem Class

Microsoft.Speech.Recognition.SrgsGrammar Namespace