> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XSpeechSynthesizer

> XSpeechSynthesizer

# XSpeechSynthesizer

テキスト文字列をオーディオ ストリームに変換するための音声合成エンジン (*音声*) の初期化と構成をサポートします。この機能はテキスト読み上げ (TTS) とも呼ばれます。

## Functions

| 関数                                                                                                                                      | 説明                                                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [XSpeechSynthesizerCloseHandle](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle)                           | 音声合成器を閉じ、割り当てられたシステム リソースを解放します。                                                                                                                                                   |
| [XSpeechSynthesizerCloseStreamHandle](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosestreamhandle)               | 音声合成器ストリームを閉じ、割り当てられたシステム リソースを解放します。                                                                                                                                              |
| [XSpeechSynthesizerCreate](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate)                                     | 音声合成器を作成します。                                                                                                                                                                       |
| [XSpeechSynthesizerCreateStreamFromSsml](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromssml)         | 指定された SSML から音声合成ストリームを作成します。                                                                                                                                                      |
| [XSpeechSynthesizerCreateStreamFromText](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromtext)         | 指定されたプレーン テキストから音声合成ストリームを作成します。                                                                                                                                                   |
| [XSpeechSynthesizerEnumerateInstalledVoices](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) | インストールされている音声を列挙し、各音声について *callback* が指すメソッドを呼び出します。                                                                                                                               |
| [XSpeechSynthesizerGetStreamData](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdata)                       | 音声合成ストリームからデータを取得します。                                                                                                                                                              |
| [XSpeechSynthesizerGetStreamDataSize](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdatasize)               | 音声合成ストリームからデータ バッファーのサイズを取得します。                                                                                                                                                    |
| [XSpeechSynthesizerInstalledVoicesCallback](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback)   | [XSpeechSynthesizerEnumerateInstalledVoices](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) が呼び出されたときに音声に関する情報を受け取る、クライアント実装のコールバック関数。 |
| [XSpeechSynthesizerSetCustomVoice](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice)                     | 音声合成器が指定されたカスタム音声を使用するように指定します。                                                                                                                                                    |
| [XSpeechSynthesizerSetDefaultVoice](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice)                   | 音声合成器がシステムの既定の音声を使用するように指定します。                                                                                                                                                     |

## Structures

| 構造体                                                                                                                   | 説明              |
| --------------------------------------------------------------------------------------------------------------------- | --------------- |
| [XSpeechSynthesizerVoiceInformation](/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) | 音声に関する情報を提供します。 |

## Enumerations

| 列挙型                                                                                                       | 説明          |
| --------------------------------------------------------------------------------------------------------- | ----------- |
| [XSpeechSynthesizerVoiceGender](/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender) | 音声の性別を示します。 |

## Conceptual documentation

* [テキスト読み上げ](/build/console-features/text-to-speech/text-to-speech)
* [タイム センシティブ スレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [Unity プロジェクトで GDK API 用の C# ラッパーを使用する](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/get-started-with-unity-pc/features/gdk-unity-api-wrappers)

## See also

[システム API リファレンス](/reference/system/gc-reference-system-toc)


## Related topics

- [XSpeechSynthesizerCreate](/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate.md)
- [XSpeechSynthesizerVoiceGender](/ja-jp/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerCloseHandle](/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle.md)
- [XSpeechSynthesizerVoiceInformation](/ja-jp/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizerCloseStreamHandle](/ja-jp/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosestreamhandle.md)
