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

# XAG 104：字幕与隐藏字幕

> 确保无法依赖音频的玩家能够通过字幕、隐藏字幕和手语理解所有对白与重要的非对白音频。

## 目标

确保游戏中出现的所有音频，都能被无法依赖音频的玩家——聋人或听力受损玩家——所理解。包括 FMV、过场动画、NPC 闲聊，以及枪声、脚步等重要音频提示。

## 概述

* \*\*字幕（Subtitles）\*\*是对话/对白的文本等价物。
* **隐藏字幕（Captions）**是**所有**音频的文本等价物——背景音乐、音效、语气、说话者身份，以及诸如“通过无线电”这样的方向性提示。

若缺失，玩家会错过背景故事、剧情情境与任务目标。

## 范围界定问题

您的游戏是否包含：

* FMV 或过场动画？
* NPC 闲聊或对白？
* 影响玩法的音频提示（枪声、脚步声）？

## 实施指南

### 字幕

* **为所有口语内容提供字幕。**
* **标明说话者。** 每当新的说话者开始发言时，标注其姓名。同一说话者的后续台词无需在每一行都重复标注——仅在说话者改变或在明显停顿（≥ 1–2 分钟）后重新标注即可。
* **空间指示。** 当音源不明显时，使用 `<` / `>` 箭头或明确的描述（如 `(通过无线电)`）。
* **颜色**可用于区分说话者，但绝不能作为唯一通道——需搭配姓名标签使用。
* **默认启用**首次启动时的字幕，或在首个过场动画播放前让玩家启用。
* **旁白台词** 在只有一位旁白且无其他说话者时无需加 `旁白：` 前缀。

### 隐藏字幕

* **为所有尚未通过视觉传达的重要声音提供隐藏字幕。**
* 对屏外声音提供**空间指示**（箭头）。
* 通过可发现的设置**可开关**并可配置。
* 允许不同的隐藏字幕类别（主要对白、背景闲聊、环境噪音）独立开关。

### 与平台集成

* 尽可能默认使用玩家在**平台层面**配置的字幕/隐藏字幕设置。允许玩家在游戏内覆盖。

### 字幕与隐藏字幕的文本呈现

| 属性         | 要求                                                                                                               |
| ---------- | ---------------------------------------------------------------------------------------------------------------- |
| **字号**     | 满足 [XAG 101](/build/game-principles/accessibility/xag-deep-dives/xag-101-text-display) 的最小值。对于快速切换的字幕建议使用更大的默认值。 |
| **可调字号**   | 可缩放至最小值的 ≥ 200%。                                                                                                 |
| **间距**     | 字符之间保持足够空间。                                                                                                      |
| **长度**     | 每行 ≤ 40 个字符。同时显示 ≤ 2 行（特殊情况下最多 3 行）。                                                                             |
| **换行**     | 优先在编辑上合理的位置手动换行。                                                                                                 |
| **大小写**    | 采用混合大小写，不使用全大写。                                                                                                  |
| **字体**     | 至少提供一种无衬线字体选项。                                                                                                   |
| **背景颜色**   | 玩家可配置文字后方的纯色背景。                                                                                                  |
| **背景不透明度** | 玩家可在 0–100% 之间配置。                                                                                                |
| **位置**     | 放置于屏幕（通常是底部）合适位置，避免放大的文字遮挡游戏 UI。                                                                                 |

### 预览与持久化

* 提供反映玩家当前配置的字幕 / 隐藏字幕**视觉预览**，最好在真实游戏场景中呈现。
* 将字幕与隐藏字幕**持久化**到录屏、截图及其他 UGC，使观看者可以启用。

### FMV 剧本

* 通过可访问的网站提供 FMV 的完整剧本。

### 手语翻译

* 为脚本化的游戏内过场动画和含有口语的预渲染 FMV 提供手语翻译。
* 手语需要本地化（ASL、BSL、JSL 等差异显著）。

## 潜在的玩家影响

| 玩家             | 受影响 |
| -------------- | :-: |
| 完全失聪的玩家        |  ✔  |
| 听力受限的玩家        |  ✔  |
| 有认知或学习障碍的玩家    |  ✔  |
| 处于嘈杂环境或静音游玩的玩家 |  ✔  |

## 资源

* [Provide subtitles for all important speech](http://gameaccessibilityguidelines.com/provide-subtitles-for-all-important-speech/)
* [If any subtitles / captions are used, present them in a clear, easy to read way](http://gameaccessibilityguidelines.com/if-any-subtitles-captions-are-used-present-them-in-a-clear-easy-to-read-way/)
* [Provide subtitles for supplementary speech](http://gameaccessibilityguidelines.com/provide-subtitles-for-supplementary-speech/)
* [Ensure subtitles/captions are or can be turned on before any sound is played](http://gameaccessibilityguidelines.com/ensure-subtitles-captions-are-or-can-be-enabled-before-any-sound-is-played)
* [Allow subtitle/caption presentation to be customized](http://gameaccessibilityguidelines.com/allow-subtitlecaption-presentation-to-be-customised/)
* [Words-per-minute for the target age-group](http://gameaccessibilityguidelines.com/ensure-that-subtitlescaptions-are-cut-down-to-and-presented-at-an-appropriate-words-per-minute-for-the-target-age-group)
* [Provide captions or visuals for significant background sounds](http://gameaccessibilityguidelines.com/provide-captions-or-visuals-for-significant-background-sounds/)
* [Ensure no essential information is conveyed by sounds alone](http://gameaccessibilityguidelines.com/ensure-no-essential-information-is-conveyed-by-sounds-alone)
* [Provide a visual indication of who is currently speaking](http://gameaccessibilityguidelines.com/provide-a-visual-indication-of-who-is-currently-speaking)
* [BBC Subtitle Guidelines](https://www.bbc.co.uk/accessibility/forproducts/guides/subtitles/)
* API：[XClosedCaptionGetProperties](https://developer.microsoft.com/games/xbox/docs/gdk/XClosedCaptionGetProperties) *(NDA)*
* API：[XClosedCaptionSetEnabled](https://developer.microsoft.com/games/xbox/docs/gdk/XClosedCaptionSetEnabled) *(NDA)*


## Related topics

- [XBOX Accessibility Guidelines（XAG）](/zh-CN/build/game-principles/accessibility/xbox-accessibility-guidelines.md)
- [XAG 102：对比度](/zh-CN/build/game-principles/accessibility/xag-deep-dives/xag-102-contrast.md)
- [XAG 121：无障碍功能文档](/zh-CN/build/game-principles/accessibility/xag-deep-dives/xag-121-accessible-feature-documentation.md)
- [XAG 101：文本显示](/zh-CN/build/game-principles/accessibility/xag-deep-dives/xag-101-text-display.md)
- [语音无障碍用户设置](/zh-CN/build/game-principles/accessibility/speech-accessibility.md)
