> ## 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、XSpeechSynthesizer、Game Chat 2 与 PlayFab Party 获取并遵循 XBOX 的语音无障碍设置，用于 STT、TTS 和旁白。

玩家会通过 **轻松使用（Ease of access）** 菜单配置语音无障碍设置。您的游戏应获取并遵循这些设置。

## 用户在何处配置设置

### XBOX 主机

**设置 → 轻松使用 →** 勾选“语音转文字”、“文字转语音”、“文字转语音音色”，以及“允许游戏为我朗读”。

### Windows

安装 [XBOX Game Bar](https://www.microsoft.com/p/xbox-game-bar/9nzkpstsnw4p) → 打开应用（**Win+G**）→ **设置 → 游戏功能**。

## 应用 STT/TTS 偏好

### PlayFab Party

在 XBOX Live Helper Library 中调用 `GetAccessibilitySettings`。

### Game Chat 2

在默认的 `game_chat_speech_to_text_conversion_mode::automatic` 下，Game Chat 2 会自动与用户的 STT/TTS 设置绑定。

### 您的游戏必须做的事

* 在 UI 或 TCUI 中渲染转写文本（若启用了 TTS）
* 将文本合成为语音（若启用了 STT）

## 相关 API 文档

* [XAccessibility API reference](/reference/system/xaccessibility/xaccessibility_members) — 隐藏字幕、高对比度、语音转文字覆盖层、STT 假设与最终化
* [XSpeechSynthesizer reference](/reference/system/xspeechsynthesizer/xspeechsynthesizer_members) — TTS 输出引擎
* [Chat (Game Chat 2) API reference](/reference/chat/gamechat2/gamechat2_members) — STT/TTS 转写状态变更
* [PlayFab Party](/services/playfab/multiplayer/networking) — Party 上的语音 + STT/TTS
* [XGameRuntime features](/reference/system/xgameruntimefeature/xgameruntimefeature_members) — 功能可用性探测

## 相关内容

* [无障碍概述](/build/game-principles/accessibility/accessibility-overview)
* [文字转语音](/build/console-features/text-to-speech/text-to-speech)
* [游戏聊天](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)


## Related topics

- [XBOX Accessibility Guidelines（XAG）](/zh-CN/build/game-principles/accessibility/xbox-accessibility-guidelines.md)
- [GDK 无障碍概览](/zh-CN/build/game-principles/accessibility/accessibility-overview.md)
- [PlayFab Party 功能](/zh-CN/services/playfab/multiplayer/networking/party-features.md)
- [PlayFabMultiplayerManager.TextToSpeechMode](/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunitytexttospeechmode.md)
- [无障碍元数据](/zh-CN/publishing/game-publishing/concepts/metadata-accessibility.md)
