Skip to main content

XSpeechSynthesizerVoiceInformation

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

語法

成員

Description
類型:const char*
語音的描述,以 DisplayName 和 Language 的組合為基礎。 DisplayName
類型:const char*
語音的顯示名稱。 Gender
類型:XSpeechSynthesizerVoiceGender
語音的性別。 VoiceId
類型:const char*
語音的唯一識別碼。 Language
類型:const char*
語音的語言,以正規化的 BCP-47 語言標記表示。

備註

XSpeechSynthesierVoiceInformation 結構代表已安裝之語音合成引擎 (或稱「語音」) 的相關資訊;這些資訊包括語音的性別和語言。呼叫 XSpeechSynthesizerSetCustomVoice 函式時,請使用 VoiceId 的值來識別已安裝的語音。 如需示範如何使用 XSpeechSynthesizerVoiceInformation 結構的範例,請參閱 XSpeechSynthesizerEnumerateInstalledVoices。

需求

標頭: XSpeechSynthesizer.h 支援的平台: Windows、XBOX One 系列主機和 XBOX Series 主機

另請參閱

XAccessibility
XSpeechSynthesizerCreateStreamFromText
XSpeechSynthesizer
Last modified on October 6, 2026