SpeechSynthesis connector can be attached to an AVFlow, and provides a Stream interface to feed audio data to the flow.
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
'Declaration Public Class SpeechSynthesisConnector _ Inherits Stream
'Usage 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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.