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)
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.