SpeechSynthesisConnector Class

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

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    System.IO..::..Stream
      Microsoft.Rtc.Collaboration.AudioVideo..::..SpeechSynthesisConnector

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

Syntax

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

Remarks

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

Reference

SpeechSynthesisConnector Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace