XSpeechSynthesizerVoiceGender

Indicates the gender of a voice.

Syntax

enum class XSpeechSynthesizerVoiceGender  : uint32_t  
{  
    Female = 0,  
    Male = 1,  
}  

Constants

Constant Description
Female The gender of the voice is female.
Male The gender of the voice is male.

Remarks

The gender of an installed speech synthesis engine, or voice, is indicated in the XSpeechSynthesizerVoiceInformation structure by a constant from this enumeration. To enumerate and retrieve information about the voices installed on the current device, call the XSpeechSynthesizerEnumerateInstalledVoices function along with the XSpeechSynthesizerInstalledVoicesCallback callback function. The latter receives an XSpeechSynthesizerVoiceInformation structure for an installed voice and is called once for each voice installed on the current device.

For an example that demonstrates how to use the XSpeechSynthesizerVoiceGender enumeration, see XSpeechSynthesizerEnumerateInstalledVoices.

Requirements

Header: XSpeechSynthesizer.h

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XAccessibility
XSpeechSynthesizerInstalledVoicesCallback
XSpeechSynthesizerVoiceInformation
XSpeechSynthesizer