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

# XSpeechToTextPositionHint

> XSpeechToTextPositionHint

# XSpeechToTextPositionHint

指定游戏 title 在屏幕上呈现文本的位置。

## 语法

```cpp theme={null}
enum class XSpeechToTextPositionHint  : uint32_t  
{  
    BottomCenter = 0,  
    BottomLeft = 1,  
    BottomRight = 2,  
    MiddleRight = 3,  
    MiddleLeft = 4,  
    TopCenter = 5,  
    TopLeft = 6,  
    TopRight = 7  
}  
```

## 常量

| 常量           | 说明                    |
| ------------ | --------------------- |
| BottomCenter | 游戏 title 在屏幕底部中央呈现文本。 |
| BottomLeft   | 游戏 title 在屏幕底部左侧呈现文本。 |
| BottomRight  | 游戏 title 在屏幕底部右侧呈现文本。 |
| MiddleRight  | 游戏 title 在屏幕中间右侧呈现文本。 |
| MiddleLeft   | 游戏 title 在屏幕中间左侧呈现文本。 |
| TopCenter    | 游戏 title 在屏幕顶部中央呈现文本。 |
| TopLeft      | 游戏 title 在屏幕顶部左侧呈现文本。 |
| TopRight     | 游戏 title 在屏幕顶部右侧呈现文本。 |

## 备注

您可以通过调用 [XSpeechToTextSetPositionHint](/reference/system/xaccessibility/functions/xspeechtotextsetpositionhint) 函数来设置语音转文本窗口的位置。
[XSpeechToTextSetPositionHint](/reference/system/xaccessibility/functions/xspeechtotextsetpositionhint) 函数以 **XSpeechToTextPositionHint** 枚举作为参数。
您还可以通过调用 [XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring) 来设置游戏 title 在屏幕上显示的文本。

## 要求

**头文件：** XAccessibility.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

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

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

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


## Related topics

- [XSpeechToTextSetPositionHint](/zh-CN/reference/system/xaccessibility/functions/xspeechtotextsetpositionhint.md)
- [XAccessibility](/zh-CN/reference/system/xaccessibility/xaccessibility_members.md)
- [XGameUiTextEntryPositionHint](/zh-CN/reference/system/xgameui/enums/xgameuitextentrypositionhint.md)
- [XGameUiTextEntryUpdatePositionHint](/zh-CN/reference/system/xgameui/functions/xgameuitextentryupdatepositionhint.md)
- [XSpeechToTextType](/zh-CN/reference/system/xaccessibility/enums/xspeechtotexttype.md)
