XSpeechSynthesizerEnumerateInstalledVoices
Enumerates the installed voices, and calls the method pointed to by callback for each voice.Syntax
Parameters
context _In_opt_Type: void* A user-specified variable that will be passed into the callback function to enable the caller to recover caller-specific data. callback _In_
Type: XSpeechSynthesizerInstalledVoicesCallback* A pointer to the method that will be called once per installed voice.
Return value
Type: HRESULT Returns S_OK if successful; otherwise, returns an error code. For a list of error codes, see Error Codes.Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
Requirements
Header: XSpeechSynthesizer.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XAccessibilityXSpeechSynthesizerSetCustomVoice
XSpeechSynthesizer
