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)
Syntax
'Declaration
Public Sub Stop
'Usage
Dim instance As SpeechRecognitionConnector
instance.Stop()
public void Stop()
Remarks
Also releases the receiver, so that another device can use the AudioVideoFlow.
Examples
The following example starts and stops the SpeechSynthesizerConnector.
C# Starting and stopping a SpeechSynthesizerConnector.
speechRecognitionConnector.AttachFlow(audioVideoFlow);
SpeechRecognitionStream stream = speechRecognitionConnector.Start();
// stream needs to be set to Microsoft.Speech.SpeechRecognition
speechRecognitionConnector.Stop();
See Also
Reference
SpeechRecognitionConnector Class