SrgsToken Class

 

Represents a word or short phrase that can be recognized.

Namespace:   System.Speech.Recognition.SrgsGrammar
Assembly:  System.Speech (in System.Speech.dll)

System::Object
  System::MarshalByRefObject
    System.Speech.Recognition.SrgsGrammar::SrgsElement
      System.Speech.Recognition.SrgsGrammar::SrgsToken

[SerializableAttribute]
public ref class SrgsToken : SrgsElement

NameDescription
System_CAPS_pubmethodSrgsToken(String^)

Initializes a new instance of the SrgsToken class and specifies the text to be recognized.

NameDescription
System_CAPS_pubpropertyDisplay

Gets or sets the display form of the text to be spoken.

System_CAPS_pubpropertyPronunciation

Gets or sets the string that defines the pronunciation for the token.

System_CAPS_pubpropertyText

Gets or sets the written form of the word that should be spoken.

NameDescription
System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: