CallProvider.ReplaceSpeechRecognizer Method
Replaces the SpeechRecognitionEngine object. This method can be used to replace the recognizer object created as part of the CallProvider object. This is useful in cases where a large grammar has been preloaded in a recognizer.
Namespace: Microsoft.Rtc.Workflow.Common
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Public Sub ReplaceSpeechRecognizer ( _
speechRecognizer As SpeechRecognitionEngine _
)
'Usage
Dim instance As CallProvider
Dim speechRecognizer As SpeechRecognitionEngine
instance.ReplaceSpeechRecognizer(speechRecognizer)
public void ReplaceSpeechRecognizer(
SpeechRecognitionEngine speechRecognizer
)
Parameters
- speechRecognizer
Type: Microsoft.Speech.Recognition.SpeechRecognitionEngine
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if argument is null. |