Skip to main content

XSpeechSynthesizerSetDefaultVoice

Specifies that the speech synthesizer is to use the system’s default voice.

Syntax

Parameters

speechSynthesizer   _In_
Type: XSpeechSynthesizerHandle
Specifies the speech synthesizer that will be using the default 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 consoles

Conceptual documentation

See also

XAccessibility
XSpeechSynthesizerCreateStreamFromText
XSpeechSynthesizer
Last modified on August 20, 2026