> ## 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 閒聊,以及重要的音訊提示 (槍聲、腳步聲)。

## 概述

* **字幕**是語音/對話的文字對應內容。
* **隱藏式輔助字幕**是**所有**音訊的文字對應內容,包括背景音樂、音效、語氣、說話者身分,以及「透過無線電」之類的方向提示。

若沒有這些,玩家就會錯過背景故事、劇情脈絡與目標。

## 範圍問題

您的遊戲是否包含:

* FMV 或過場動畫?
* NPC 閒聊或對話?
* 提供遊戲資訊的音訊提示 (槍聲、腳步聲)?

## 實作指南

### 字幕

* **為所有語音內容提供字幕。**
* **識別說話者。** 每當新的說話者開始說話時,標示說話者的名稱。一旦確立後,同一說話者後續的每一行都不需要重複標籤,只有在說話者變更或經過明顯停頓 (≥ 1–2 分鐘) 後才需要。
* **空間指示器。** 當來源不明顯時,使用 `<` / `>` 箭頭或明確的描述 (例如 `(on radio)`)。
* **色彩**可用來區分說話者,但絕不可作為唯一管道,請搭配名稱標籤。
* 在首次啟動時**預設啟用**,或讓玩家在第一段過場動畫播放前啟用。
* 當只有一位旁白且沒有其他說話者時,**旁白台詞**不需要 `Narrator:` 前置詞。

### 隱藏式輔助字幕

* **為所有重要聲音提供**尚未以視覺方式傳達的輔助字幕。
* 為畫面外的聲音提供**空間指示** (箭頭)。
* 可透過容易找到的設定**切換**與設定。
* 允許個別切換不同的輔助字幕類別 (主要對話、背景閒聊、環境噪音)。

### 平台整合

* 盡可能預設使用玩家在**平台層級**設定的輔助字幕/字幕設定。讓玩家能在遊戲內覆寫。

### 字幕與輔助字幕的文字呈現

| 屬性 | 需求 |
| - | - |
| **大小** | 符合 [XAG 101](/zh-TW/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

- [XAG 121:無障礙功能文件](/zh-TW/build/game-principles/accessibility/xag-deep-dives/xag-121-accessible-feature-documentation.md)
- [XAG 102：對比](/zh-TW/build/game-principles/accessibility/xag-deep-dives/xag-102-contrast.md)
- [XAG 101：文字顯示](/zh-TW/build/game-principles/accessibility/xag-deep-dives/xag-101-text-display.md)
- [XBOX 裝置上遊戲的 Store 清單](/zh-TW/publishing/game-publishing/concepts/store-listing.md)
- [XColor](/zh-TW/reference/system/xgameruntimetypes/structs/xcolor.md)
