Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SrgsToken Constructor
Initializes a new instance of the SrgsToken class and specifies the text to be recognized.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Sub New ( _
text As String _
)
'Usage
Dim text As String
Dim instance As New SrgsToken(text)
public SrgsToken(
string text
)
Parameters
- text
Type: System.String
The text of the new SrgsToken class instance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | text is a null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | text is empty. |
Remarks
Creates an SrgsToken object whose Text property is set initially to the value of the text parameter.