SpeechRecognitionConnector.Stop Method

Caps off the current stream, and stop recording audio. Will no-op if the SpeechRecognitionConnector is already stopped.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

public void Stop()

Also releases the receiver, so that another device can use the AudioVideoFlow.

The following example starts and stops the SpeechSynthesizerConnector.

C# Starting and stopping a SpeechSynthesizerConnector.


            SpeechRecognitionStream stream = speechRecognitionConnector.Start();

            // stream needs to be set to Microsoft.Speech.SpeechRecognition