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 _
)
public void ReplaceSpeechRecognizer(
    SpeechRecognitionEngine speechRecognizer
)
public:
void ReplaceSpeechRecognizer(
    SpeechRecognitionEngine^ speechRecognizer
)
function replaceSpeechRecognizer(speechRecognizer);

Parameters

  • speechRecognizer
    Type: SpeechRecognitionEngine

Exceptions

Exception Condition
ArgumentNullException Thrown if argument is null.

See Also

CallProvider Class

Microsoft.Rtc.Workflow.Common Namespace