Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SrgsRuleRef Members

Include Protected Members
Include Inherited Members

Represents the grammar element that specifies a reference to a rule.

The SrgsRuleRef type exposes the following members.

Constructors

  Name Description
Public method SrgsRuleRef(Uri) Initializes a new instance of the SrgsRuleRef class and specifies the location of the external grammar file to reference.
Public method SrgsRuleRef(SrgsRule) Initializes a new instance of the SrgsRuleRef class and specifies the rule to reference.
Public method SrgsRuleRef(Uri, String) Initializes a new instance of the SrgsRuleRef class, specifying the location of the external grammar file and the identifier of the rule to reference.
Public method SrgsRuleRef(SrgsRule, String) Initializes a new instance of the SrgsRuleRef class, specifying the rule to reference and a string that contains a semantic key.
Public method SrgsRuleRef(Uri, String, String) Initializes a new instance of the SrgsRuleRef class, specifying the location of the external grammar file, the identifier of the rule, and the string alias of the semantic dictionary.

Top

Properties

  Name Description
Public property Params Gets the initialization parameters for a SrgsRuleRef object.
Public property SemanticKey Gets an alias string for the semantic dictionary.
Public property Uri Gets the URI for the rule that this SrgsRuleRef object references.

Top

Methods

  Name Description
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 ToString (inherited from Object)

Top

Fields

  Name Description
Public fieldStatic member Dictation Defines a rule that can match spoken input as defined by the dictation topic associated with this grammar.
Public fieldStatic member Garbage Defines a rule that can match any speech up to the next rule match, the next token, or until the end of spoken input.
Public fieldStatic member MnemonicSpelling
Public fieldStatic member Null Defines a rule that is automatically matched in the absence of any audio input.
Public fieldStatic member Void Defines a rule that can never be spoken. Inserting VOID into a sequence automatically makes that sequence unspeakable.

Top

See Also

Reference

SrgsRuleRef Class

Microsoft.Speech.Recognition.SrgsGrammar Namespace