> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XSpeechSynthesizerVoiceGender

> XSpeechSynthesizerVoiceGender

# XSpeechSynthesizerVoiceGender

音声の性別を示します。

## Syntax

```cpp theme={null}
enum class XSpeechSynthesizerVoiceGender  : uint32_t  
{  
    Female = 0,  
    Male = 1,  
}  
```

## Constants

| 定数 | 説明 |
| - | - |
| Female | 音声の性別は女性です。 |
| Male | 音声の性別は男性です。 |

## Remarks

インストールされている音声合成エンジン (*音声*) の性別は、この列挙型の定数によって [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) 構造体で示されます。現在のデバイスにインストールされている音声を列挙し、それらに関する情報を取得するには、[XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) 関数を [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md) コールバック関数と共に呼び出します。後者はインストールされている音声の **XSpeechSynthesizerVoiceInformation** 構造体を受け取り、現在のデバイスにインストールされている音声ごとに 1 回呼び出されます。

**XSpeechSynthesizerVoiceGender** 列挙型の使用方法を示す例については、[XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) を参照してください。

## Requirements

**ヘッダー:** XSpeechSynthesizer.h

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

[XAccessibility](https://docs.xbox.com/ja-jp/reference/system/xaccessibility/xaccessibility_members.md)\
[XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)\
[XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)\
[XSpeechSynthesizer](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)


## Related topics

- [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizer (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)
- [XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
