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

# XSpeechSynthesizerVoiceInformation

> XSpeechSynthesizerVoiceInformation

# XSpeechSynthesizerVoiceInformation

提供「語音」(已安裝的語音合成引擎) 的相關資訊。

## 語法

```cpp theme={null}
typedef struct XSpeechSynthesizerVoiceInformation {  
    const char* Description;  
    const char* DisplayName;  
    XSpeechSynthesizerVoiceGender Gender;  
    const char* VoiceId;  
    const char* Language;  
} XSpeechSynthesizerVoiceInformation  
```

### 成員

*Description*\
類型：const char\*

語音的描述，以 *DisplayName* 和 *Language* 的組合為基礎。

*DisplayName*\
類型：const char\*

語音的顯示名稱。

*Gender*\
類型：[XSpeechSynthesizerVoiceGender](/zh-TW/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender)

語音的性別。

*VoiceId*\
類型：const char\*

語音的唯一識別碼。

*Language*\
類型：const char\*

語音的語言，以正規化的 [BCP-47 語言標記](https://tools.ietf.org/html/bcp47)表示。

## 備註

**XSpeechSynthesierVoiceInformation** 結構代表已安裝之語音合成引擎 (或稱「語音」) 的相關資訊；這些資訊包括語音的性別和語言。呼叫 [XSpeechSynthesizerSetCustomVoice](/zh-TW/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice) 函式時，請使用 *VoiceId* 的值來識別已安裝的語音。

如需示範如何使用 **XSpeechSynthesizerVoiceInformation** 結構的範例，請參閱 [XSpeechSynthesizerEnumerateInstalledVoices](/zh-TW/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices)。

## 需求

**標頭：** XSpeechSynthesizer.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XAccessibility](/zh-TW/reference/system/xaccessibility/xaccessibility_members)\
[XSpeechSynthesizerCreateStreamFromText](/zh-TW/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromtext)\
[XSpeechSynthesizer](/zh-TW/reference/system/xspeechsynthesizer/xspeechsynthesizer_members)


## Related topics

- [XSpeechSynthesizerVoiceInformation](/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizerVoiceGender](/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerInstalledVoicesCallback](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)
- [XSpeechSynthesizer](/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
