SpeechSynthesisConnector Class

SpeechSynthesis connector can be attached to an AVFlow, and provides a Stream interface to feed audio data to the flow.

Inheritance Hierarchy


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


Public Class SpeechSynthesisConnector _
    Inherits Stream
Dim instance As SpeechSynthesisConnector
public class SpeechSynthesisConnector : Stream


The Stream can be given to a SpeechSynthesizer as an output destination, in order to play TTS over the wire.

Internally, the role of SSC is to translate between Stream's Write() method and the media stack's RMA buffers. Because there is only ever one input Stream, SSC is simpler than SRC. There are as many buffers present as are necessary to handle a single Write() call. Write() won't return until nearly all the written data has been consumed by the media stack. This tight buffering ensures that the progress events reported by the SpeechSynthesizer (for example, BookmarkReached) correspond to how much of the prompt has been played on the wire.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


SpeechSynthesisConnector Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace