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

Specifies the source type of the text that the Game renders.

## Syntax

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

## Constants

| Constant | Description                                                                                                                                                                      |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Voice    | The source of the text is in-game speech subtitles or transcribed game voice chat. Specifying Voice causes the game title to display a microphone icon beside the rendered text. |
| Text     | The source of the text is in-game text reading or in-game text chat. Specifying Text causes the game title to display a keyboard icon beside the rendered text.                  |

## Remarks

You can display text on the Game title screen by calling the [XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring) function.

The [XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring) function takes an **XSpeechToTextType** enumeration as an argument.

You can also set the position of the speech-to-text window by calling the [XSpeechToTextSetPositionHint](/reference/system/xaccessibility/functions/xspeechtotextsetpositionhint) function.

## Requirements

**Header:** XAccessibility.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

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

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

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


## Related topics

- [XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring.md)
- [XSpeechToTextBeginHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring.md)
- [XAccessibility](/reference/system/xaccessibility/xaccessibility_members.md)
- [PartySynthesizeTextToSpeechType](/services/playfab/multiplayer/networking/reference/enums/partysynthesizetexttospeechtype.md)
- [PlayFab Party text-to-speech and text input UX Guidelines](/services/playfab/community/voice-communications/party-text-to-speech-ux-guidelines.md)
