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)


Public Sub ReplaceSpeechRecognizer ( _
    speechRecognizer As SpeechRecognitionEngine _
public void ReplaceSpeechRecognizer(
    SpeechRecognitionEngine speechRecognizer
void ReplaceSpeechRecognizer(
    SpeechRecognitionEngine^ speechRecognizer
function replaceSpeechRecognizer(speechRecognizer);


  • speechRecognizer
    Type: SpeechRecognitionEngine


Exception Condition
ArgumentNullException Thrown if argument is null.

See Also

CallProvider Class

Microsoft.Rtc.Workflow.Common Namespace