![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Defines the values for the gender of synthesized voices.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Enumeration VoiceGender |
Visual Basic (Usage) |
---|
Dim instance As VoiceGender |
C# |
---|
public enum VoiceGender |
Members
Member name | Description | |
---|---|---|
NotSet | Indicates no voice gender specification. | |
Male | Indicates a male voice. | |
Female | Indicates a female voice. | |
Neutral | Indicates a gender-neutral voice. |
Remarks
VoiceGender can indicate the gender of an existing voice or a gender preference when selecting a voice. All of the SelectVoiceByHints()()()() methods and three of the StartVoice()()()() methods use VoiceGender to specify the gender when selecting a voice. The Gender property obtains the gender of an existing voice using a VoiceGender member.