SpeechSynthesizer.SetOutputToAudioStream Methode

Definition

Konfiguriert das SpeechSynthesizer-Objekt, um die Ausgabe an einem Audiostream anzufügen.

public:
 void SetOutputToAudioStream(System::IO::Stream ^ audioDestination, System::Speech::AudioFormat::SpeechAudioFormatInfo ^ formatInfo);
public void SetOutputToAudioStream (System.IO.Stream audioDestination, System.Speech.AudioFormat.SpeechAudioFormatInfo formatInfo);
member this.SetOutputToAudioStream : System.IO.Stream * System.Speech.AudioFormat.SpeechAudioFormatInfo -> unit
Public Sub SetOutputToAudioStream (audioDestination As Stream, formatInfo As SpeechAudioFormatInfo)

Parameter

audioDestination
Stream

Der Stream, an den Syntheseausgabe angefügt werden soll.

formatInfo
SpeechAudioFormatInfo

Das Format, das für die Syntheseausgabe verwendet werden soll.

Hinweise

Ruft SetOutputToNull auf, um den SpeechSynthesizer Verweis auf den Stream freizugeben.

Informationen zu anderen Ausgabe Konfigurationsoptionen finden Sie in den SetOutputToDefaultAudioDevice SetOutputToNull Methoden,, SetOutputToWaveFile und SetOutputToWaveStream .

Gilt für