StartVoice Method (VoiceGender, VoiceAge)

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 and the age 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, _
	age As VoiceAge _
)
Visual Basic (Usage)
Dim instance As PromptBuilder
Dim gender As VoiceGender
Dim age As VoiceAge

instance.StartVoice(gender, age)
C#
public void StartVoice(
	VoiceGender gender,
	VoiceAge age
)

Parameters

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

The gender of the voice to use.

age
Type: Microsoft.Speech.Synthesis..::..VoiceAge

The age 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