Note

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

SpeechSynthesizer Constructor

Initializes a new instance of the SpeechSynthesizer class.

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New SpeechSynthesizer()
public SpeechSynthesizer()

Remarks

When you initialize a new SpeechSynthesizer instance, it uses the default system voice. To configure the SpeechSynthesizer to use one of the installed speech synthesis (text-to-speech) voices, use the SelectVoice or SelectVoiceByHints method. To get information about which voices are installed, use the GetInstalledVoices method and the VoiceInfo class.

See Also

Reference

SpeechSynthesizer Class

SpeechSynthesizer Members

Microsoft.Speech.Synthesis Namespace

InstalledVoice

SelectVoice(String)

SelectVoiceByHints

GetInstalledVoices