SpeechSynthesisConnector.Stop Method

Stops sending data to the AudioVideoFlow.

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

public void Stop()

Will no-op if SpeechSynthesisConnector is already stopped, or is not attached to an AudioVideoFlow.

The following example starts and stops the SpeechSynthesizerConnector.

C# Starting and stopping a SpeechSynthesizerConnector.

 

            // connector needs to be set to Microsoft.Speech.SpeechSpeechSynthesizer

            speechSynthesisConnector.AttachFlow(audioVideoFlow);
            speechSynthesisConnector.Start();



            speechSynthesisConnector.Stop();




Show: