Represents a word or short phrase that can be recognized.
Inheritance Hierarchy
System..::..MarshalByRefObject
Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsElement
Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsToken
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public NotInheritable Class SrgsToken _ Inherits SrgsElement |
Visual Basic (Usage) |
---|
Dim instance As SrgsToken |
C# |
---|
[SerializableAttribute] public sealed class SrgsToken : SrgsElement |
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 the Microsoft Speech Platform SDK 11, see token Element (Microsoft.Speech).