Skip to main content

XSpeechSynthesizerVoiceGender

指出語音的性別。

語法

常數

備註

已安裝之語音合成引擎 (或稱 語音) 的性別,會在 XSpeechSynthesizerVoiceInformation 結構中以此列舉的常數表示。若要列舉及擷取目前裝置上已安裝語音的相關資訊,請呼叫 XSpeechSynthesizerEnumerateInstalledVoices 函式,並搭配 XSpeechSynthesizerInstalledVoicesCallback 回呼函式。後者會接收已安裝語音的 XSpeechSynthesizerVoiceInformation 結構,並針對目前裝置上安裝的每個語音呼叫一次。 如需示範如何使用 XSpeechSynthesizerVoiceGender 列舉的範例,請參閱 XSpeechSynthesizerEnumerateInstalledVoices。

需求

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

另請參閱

XAccessibility
XSpeechSynthesizerInstalledVoicesCallback
XSpeechSynthesizerVoiceInformation
XSpeechSynthesizer
Last modified on October 6, 2026