Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SpeechSynthesizer.SetOutputToNull Method

Configures the SpeechSynthesizer object to not send output from synthesis operations to a device, file, or stream.

Namespace:  Microsoft.Speech.Synthesis
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

'Declaration
Public Sub SetOutputToNull
'Usage
Dim instance As SpeechSynthesizer

instance.SetOutputToNull()
public void SetOutputToNull()

Remarks

Use this method to release the SpeechSynthesizer ‘s reference to a file or stream. See SetOutputToWaveStream(Stream) for an example.

For other output configuration options, see the SetOutputToAudioStream, SetOutputToDefaultAudioDevice, SetOutputToWaveFile, and SetOutputToWaveStream methods.

See Also

Reference

SpeechSynthesizer Class

SpeechSynthesizer Members

Microsoft.Speech.Synthesis Namespace