SpeechSynthesisConnector Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SpeechSynthesisConnector can be attached to an AudioVideoFlow, and provides a Stream interface to feed audio data to the flow.
public ref class SpeechSynthesisConnector : System::IO::Stream
public class SpeechSynthesisConnector : System.IO.Stream
type SpeechSynthesisConnector = class
inherit Stream
Public Class SpeechSynthesisConnector
Inherits Stream
- Inheritance
-
SpeechSynthesisConnector
Remarks
The Stream can be given to a SpeechSynthesizer as an output destination, in order to synthesize text over the wire.
SpeechSynthesisConnector should be used only in conjuction with Microsoft.Speech.
Constructors
SpeechSynthesisConnector() |
Creates a new instance of the SpeechSynthesisConnector class. |
Properties
AudioFormat |
Gets or sets the desired AudioFormat. |
AudioVideoFlow |
Gets the attached AudioVideoFlow. |
CanRead |
Gets whether the current stream supports reading. This property always returns false. |
CanSeek |
Gets whether the current stream supports seeking. This property always returns false. |
CanTimeout |
Gets whether the current stream can time out. This property always returns false. |
CanWrite |
Gets whether the current stream supports writing. This property always returns true. |
ExpectedAudioFormat |
Obsolete.
Gets the format in which SpeechSynthesisConnector expects audio data to be written to the stream. |
IsActive |
Gets whether the SpeechSynthesisConnector is currently started. |
Length |
Not supported. Gets the length of the stream in bytes. |
Position |
Gets or sets the position within the current stream. Setting this property is not supported. |
ReadTimeout |
Not supported. Gets or sets how long the stream will attempt to read before timing out. |
Stream |
Gets the stream corresponding to this connector, for use as a parameter to SpeechSynthesizer.SetOutputToAudioStream(). |
WriteTimeout |
Not supported. Gets or sets how long the stream will attempt to write before timing out. |
Methods
AttachFlow(AudioVideoFlow) |
Specifies which AudioVideoFlow will provide audio data for speech recognition. Only one AudioVideoFlow may be bound at a time. |
BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) |
Not supported. |
BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) |
Not supported. |
DetachFlow() |
Detaches the current AudioVideoFlow, freeing the connector to use another. |
Dispose(Boolean) |
Dispose |
EndRead(IAsyncResult) |
Not supported. |
EndWrite(IAsyncResult) |
Not supported. |
Flush() |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
Read(Byte[], Int32, Int32) |
Not supported. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes. |
ReadByte() |
Not supported. |
Seek(Int64, SeekOrigin) |
Not supported. Sets the position within the current stream. |
SetLength(Int64) |
Not supported. Sets the length of the current stream. |
Start() |
Prepares the connector to accept input from the SpeechSynthesizer and transmit it to the AudioVideoFlow. |
Stop() |
Stops sending data to the AudioVideoFlow. |
Write(Byte[], Int32, Int32) |
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. Blocks until the data has been (almost) sent on the wire. |
WriteByte(Byte) |
Not supported. |