SrgsToken Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a word or short phrase that can be recognized.
public ref class SrgsToken : System::Speech::Recognition::SrgsGrammar::SrgsElement
public class SrgsToken : System.Speech.Recognition.SrgsGrammar.SrgsElement
[System.Serializable]
public class SrgsToken : System.Speech.Recognition.SrgsGrammar.SrgsElement
type SrgsToken = class
inherit SrgsElement
[<System.Serializable>]
type SrgsToken = class
inherit SrgsElement
Public Class SrgsToken
Inherits SrgsElement
- Inheritance
- Attributes
Remarks
Using the members of the SrgsToken class, you can specify three forms of a word: the Display form, the Text form, and a custom Pronunciation for the word.
If multiple words are stored in a single SrgsToken object, each is treated as a different token internally and in the result.
This class represents the token
element defined by the World Wide Web Consortium (W3C) Speech Recognition Grammar Specification (SRGS) Version 1.0.. For information about the SRGS token
element and details about its support by System.Speech, see token Element.
Constructors
SrgsToken(String) |
Initializes a new instance of the SrgsToken class and specifies the text to be recognized. |
Properties
Display |
Gets or sets the display form of the text to be spoken. |
Pronunciation |
Gets or sets the string that defines the pronunciation for the token. |
Text |
Gets or sets the written form of the word that should be spoken. |
Methods
CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetLifetimeService() |
Obsolete.
Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
InitializeLifetimeService() |
Obsolete.
Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |