SrgsItem Members

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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

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

  NameDescription
Public propertyElementsGets the collection of objects contained by the SrgsItem instance.
Public propertyMaxRepeatGets the maximum number of times that a user can speak the contents of the SrgsItem.
Public propertyMinRepeatGets the minimum number of times that a user can speak the contents of the SrgsItem.
Public propertyRepeatProbabilityGets or sets the probability that a user will repeat the contents of this SrgsItem instance.
Public propertyWeightGets or sets a multiplying factor that adjusts the likelihood that an SrgsItem in an SrgsOneOf object will be spoken.
Top

Methods

  NameDescription
Public methodAddAdds an object to the collection of objects contained in this SrgsItem instance.
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone()()()() (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodSetRepeat(Int32)Sets the number of times that the contents of an SrgsItem must be spoken.
Public methodSetRepeat(Int32, Int32)Sets the minimum number of times and the maximum number of times that an item can be spoken.
Public methodToString (Inherited from Object.)
Top

See Also