Skip to main content

XSpeechSynthesizerSetCustomVoice

音声合成器が指定されたカスタム音声を使用するように指定します。

Syntax

Parameters

speechSynthesizer   _In_
型: XSpeechSynthesizerHandle
カスタム音声を使用する音声合成器を指定します。 voiceId   _In_z_
型: char*
XSpeechSynthesizerInstalledVoicesCallback 関数で返される XSpeechSynthesizerVoiceInformation 構造体内の音声 ID。

Return value

型: HRESULT 成功した場合は S_OK を返します。そうでない場合はエラー コードを返します。エラー コードの一覧については、エラー コード を参照してください。

Remarks

この関数はタイム センシティブ スレッドで呼び出すのは安全ではありません。詳細については、タイム センシティブ スレッド を参照してください。

Requirements

ヘッダー: XSpeechSynthesizer.h ライブラリ: xgameruntime.lib サポートされているプラットフォーム: Windows、XBOX One ファミリー本体および XBOX Series 本体

Conceptual documentation

See also

XAccessibility
XSpeechSynthesizerCreateStreamFromText
XSpeechSynthesizer
最終更新日 2026年8月24日