StartVoice Method (VoiceGender)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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)

Syntax

Visual Basic (Declaration)
Public Sub StartVoice ( _
	gender As VoiceGender _
)
Visual Basic (Usage)
Dim instance As PromptBuilder
Dim gender As VoiceGender

instance.StartVoice(gender)
C#
public void StartVoice(
	VoiceGender gender
)

Parameters

gender
Type: Microsoft.Speech.Synthesis..::..VoiceGender

The gender of the voice to use.

Remarks

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

See Also