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

# XAccessibility

> XAccessibility

# XAccessibility

GameAccessibility API 可让您设计、设置和修改游戏可访问性功能与信息。
例如，可以配置隐藏式字幕属性、高对比度模式以及文本边缘样式。
您还可以修改语音转文本窗口中显示的文本以及该窗口的位置。

## 函数

| 函数                                                                                                                        | 说明                        |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| [XClosedCaptionGetProperties](/reference/system/xaccessibility/functions/xclosedcaptiongetproperties)                     | 返回当前隐藏式字幕的属性。             |
| [XClosedCaptionSetEnabled](/reference/system/xaccessibility/functions/xclosedcaptionsetenabled)                           | 设置一个用于指示是否启用或禁用隐藏式字幕的布尔值。 |
| [XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode)                                   | 返回当前的高对比度模式。              |
| [XSpeechToTextBeginHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring)       | 开始一个假设，并在文本覆盖层中显示其字符串。    |
| [XSpeechToTextCancelHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextcancelhypothesisstring)     | 取消一个假设，并将其字符串从文本覆盖层中移除。   |
| [XSpeechToTextFinalizeHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextfinalizehypothesisstring) | 最终确定一个假设，并更新其在文本覆盖层中的字符串。 |
| [XSpeechToTextSendString](/reference/system/xaccessibility/functions/xspeechtotextsendstring)                             | 在游戏 title 屏幕上显示文本。        |
| [XSpeechToTextSetPositionHint](/reference/system/xaccessibility/functions/xspeechtotextsetpositionhint)                   | 设置语音转文本窗口的位置。             |
| [XSpeechToTextUpdateHypothesisString](/reference/system/xaccessibility/functions/xspeechtotextupdatehypothesisstring)     | 在文本覆盖层中更新假设字符串。           |

## 结构

| 结构                                                                                            | 说明         |
| --------------------------------------------------------------------------------------------- | ---------- |
| [XClosedCaptionProperties](/reference/system/xaccessibility/structs/xclosedcaptionproperties) | 描述隐藏式字幕属性。 |

## 枚举

| 枚举                                                                                                        | 说明                      |
| --------------------------------------------------------------------------------------------------------- | ----------------------- |
| [XClosedCaptionFontEdgeAttribute](/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute) | 指定隐藏式字幕文本的边缘样式。         |
| [XClosedCaptionFontStyle](/reference/system/xaccessibility/enums/xclosedcaptionfontstyle)                 | 指定隐藏式字幕文本的字体样式。         |
| [XHighContrastMode](/reference/system/xaccessibility/enums/xhighcontrastmode)                             | 指定隐藏式字幕文本的高对比度模式样式。     |
| [XSpeechToTextPositionHint](/reference/system/xaccessibility/enums/xspeechtotextpositionhint)             | 指定游戏 title 在屏幕上呈现文本的位置。 |
| [XSpeechToTextType](/reference/system/xaccessibility/enums/xspeechtotexttype)                             | 指定游戏所呈现文本的源类型。          |

## 概念性文档

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [可访问性概览](/build/game-principles/accessibility/accessibility-overview)
* [Using C# wrappers for GDK APIs in your Unity project](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/get-started-with-unity-pc/features/gdk-unity-api-wrappers)

## 另请参阅

[系统 API 参考](/reference/system/gc-reference-system-toc)


## Related topics

- [XBOX Accessibility Guidelines（XAG）](/zh-CN/build/game-principles/accessibility/xbox-accessibility-guidelines.md)
- [XSpeechToTextUpdateHypothesisString](/zh-CN/reference/system/xaccessibility/functions/xspeechtotextupdatehypothesisstring.md)
- [XSpeechToTextBeginHypothesisString](/zh-CN/reference/system/xaccessibility/functions/xspeechtotextbeginhypothesisstring.md)
- [XSpeechToTextCancelHypothesisString](/zh-CN/reference/system/xaccessibility/functions/xspeechtotextcancelhypothesisstring.md)
- [XSpeechToTextFinalizeHypothesisString](/zh-CN/reference/system/xaccessibility/functions/xspeechtotextfinalizehypothesisstring.md)
