> ## 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.

# XSpeechToTextType

> XSpeechToTextType

# XSpeechToTextType

ゲームがレンダリングするテキストのソース タイプを指定します。

## 構文

```cpp theme={null}
enum class XSpeechToTextType  : uint32_t  
{  
    Voice = 0,  
    Text = 1  
}  
```

## 定数

| 定数    | 説明                                                                                                |
| ----- | ------------------------------------------------------------------------------------------------- |
| Voice | テキストのソースはゲーム内音声字幕、または書き起こされたゲーム ボイス チャットです。 Voice を指定すると、ゲーム タイトルはレンダリングされるテキストの横にマイク アイコンを表示します。 |
| Text  | テキストのソースはゲーム内テキストの読み上げ、またはゲーム内テキスト チャットです。 Text を指定すると、ゲーム タイトルはレンダリングされるテキストの横にキーボード アイコンを表示します。 |

## 解説

[XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring) 関数を呼び出すことで、ゲーム タイトル画面にテキストを表示できます。

[XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring) 関数は **XSpeechToTextType** 列挙型を引数として受け取ります。

また、[XSpeechToTextSetPositionHint](/reference/system/xaccessibility/functions/xspeechtotextsetpositionhint) 関数を呼び出すことで、音声テキスト変換ウィンドウの位置を設定することもできます。

## 要件

**ヘッダー:** XAccessibility.h

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体、XBOX Series 本体

## 関連項目

[XAccessibility](/reference/system/xaccessibility/xaccessibility_members)

[XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring)

[XSpeechToTextSetPositionHint](/reference/system/xaccessibility/functions/xspeechtotextsetpositionhint)


## Related topics

- [XSpeechToTextSendString](/ja-jp/reference/system/xaccessibility/functions/xspeechtotextsendstring.md)
- [XSpeechToTextBeginHypothesisString](/ja-jp/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring.md)
- [XAccessibility](/ja-jp/reference/system/xaccessibility/xaccessibility_members.md)
- [PartySynthesizeTextToSpeechType](/ja-jp/services/playfab/multiplayer/networking/reference/enums/partysynthesizetexttospeechtype.md)
- [PartyLocalChatControl::SynthesizeTextToSpeech](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_synthesizetexttospeech.md)
