SpeechSynthesizer.SetOutputToNull 方法
定义
配置 SpeechSynthesizer 对象以不从对设备、文件或流的聚合操作中发送输出。Configures the SpeechSynthesizer object to not send output from synthesis operations to a device, file, or stream.
public:
void SetOutputToNull();
public void SetOutputToNull ();
member this.SetOutputToNull : unit -> unit
Public Sub SetOutputToNull ()
注解
使用此方法可释放对 SpeechSynthesizer 文件或流的引用。Use this method to release the SpeechSynthesizer's reference to a file or stream. 有关示例,请参见 SetOutputToWaveStream。See SetOutputToWaveStream for an example.
有关其他输出配置选项,请参阅 SetOutputToAudioStream 、 SetOutputToDefaultAudioDevice 、 SetOutputToWaveFile 和 SetOutputToWaveStream 方法。For other output configuration options, see the SetOutputToAudioStream, SetOutputToDefaultAudioDevice, SetOutputToWaveFile, and SetOutputToWaveStream methods.