Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
GrammarInfoPartsCollection.AddEnginePart Method
Adds the part of the engine passed as a parameter to the collection.
Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Function AddEnginePart ( _
engine As SpeechRecognitionEngine _
) As Guid
'Usage
Dim instance As GrammarInfoPartsCollection
Dim engine As SpeechRecognitionEngine
Dim returnValue As Guid
returnValue = instance.AddEnginePart(engine)
public Guid AddEnginePart(
SpeechRecognitionEngine engine
)
Parameters
- engine
Type: Microsoft.Speech.Recognition.SpeechRecognitionEngine
A SpeechRecognitionEngine instance.
Return Value
Type: System.Guid
A Guid that is associated with the added engine part.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if the engine part could not be added for any reason. |
See Also
Reference
GrammarInfoPartsCollection Class