PromptBuilder.StartVoice Method (VoiceGender)

Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the gender of the voice to use.

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

public void StartVoice(
	VoiceGender gender
)

Parameters

gender
Type: Microsoft.Speech.Synthesis.VoiceGender
The gender of the voice to use.

Use the GetInstalledVoices() methods and VoiceInfo class to obtain the names and attributes of installed text-to-speech (TTS) voices that you can select.

To stop using the voice specified by StartVoice(VoiceGender) call EndVoice().

Show: