XSpeechSynthesizerVoiceInformation
提供有关语音(已安装的语音合成引擎)的信息。语法
成员
Description类型:const char* 语音的说明,基于 DisplayName 和 Language 的组合。 DisplayName
类型:const char* 语音的显示名称。 Gender
类型:XSpeechSynthesizerVoiceGender 语音的性别。 VoiceId
类型:const char* 语音的唯一 ID。 Language
类型:const char* 语音的语言,以规范化的 BCP-47 语言标签表示。
备注
XSpeechSynthesierVoiceInformation 结构表示有关已安装的语音合成引擎(即语音)的信息;该信息包括语音的性别和语言。在调用 XSpeechSynthesizerSetCustomVoice 函数时,使用 VoiceId 的值来标识已安装的语音。 有关演示如何使用 XSpeechSynthesizerVoiceInformation 结构的示例,请参阅 XSpeechSynthesizerEnumerateInstalledVoices。要求
头文件: XSpeechSynthesizer.h 支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机另请参阅
XAccessibilityXSpeechSynthesizerCreateStreamFromText
XSpeechSynthesizer
