Export (0) Print
Expand All

SpeechSynthesisConnector.Start Method

Prepares the connector to accept input from the SpeechSynthesizer and transmit it to the AudioVideoFlow.

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

public void Start()

ExceptionCondition
InvalidOperationException

Thrown when another device is already sending on the AudioVideoFlow.

InvalidOperationException

Thrown when the SpeechSynthesisConnector is not attached to an AudioVideoFlow.

InvalidOperationException

Thrown when the SpeechSynthesisConnector is already started.

The following example starts the SpeechSynthesizerConnector.

C# Starting a SpeechSynthesizerConnector.

 

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

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



            speechSynthesisConnector.Stop();




Show:
© 2015 Microsoft