Share via


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)

Syntax

'Declaration
Public Sub Start
'Usage
Dim instance As SpeechSynthesisConnector

instance.Start()
public void Start()

Exceptions

Exception Condition
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.

Examples

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();


See Also

Reference

SpeechSynthesisConnector Class

SpeechSynthesisConnector Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace