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

# game_chat_speech_to_text_conversion_mode

> game_chat_speech_to_text_conversion_mode

# game\_chat\_speech\_to\_text\_conversion\_mode

定義 Game Chat 2 可用的語音轉文字轉換模式。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
enum class game_chat_speech_to_text_conversion_mode  
{  
    automatic,  
    title_managed,  
}  
```

<a id="constantsSection" />

## 常數

| 常數 | 描述 |
| - | - |
| automatic | 代表「自動」語音轉文字轉換模式。<br /><br /> 如果本機使用者已要求語音轉文字，Game Chat 2 會自動轉錄與本機使用者相關聯的傳出音訊，以及與獲准對本機使用者說話之使用者相關聯的傳入音訊。每一則轉錄都會以 [game\_chat\_transcribed\_chat\_received\_state\_change](/zh-TW/reference/chat/gamechat2/structs/game_chat_transcribed_chat_received_state_change) 狀態變更的形式提供給應用程式。應用程式應為已要求語音轉文字的使用者在螢幕上顯示此訊息。 |
| title\_managed | 代表「遊戲管理」語音轉文字轉換模式。<br /><br /> 當使用者要求語音轉文字時，Game Chat 2 不會自動轉錄音訊。當使用者已啟用語音轉文字設定時 (如 [chat\_user\_local::speech\_to\_text\_conversion\_preference\_enabled](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_speech_to_text_conversion_preference_enabled) 所指出)，由遊戲負責轉錄音訊。 |

<a id="remarksSection" />

## 備註

根據預設，Game Chat 2 會自動管理大部分支援語音轉文字協助工具案例的工作。初始化 Game Chat 2 時，您可以在 [chat\_manager::initialize](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize) 方法的 `speechToTextConversion` 參數中指定 `title_managed`，讓遊戲停用此自動工作，改用獨立的語音轉文字解決方案。如需初始化 Game Chat 2 的詳細資訊，請參閱[使用 Game Chat 2 C++ API](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2)。

<a id="requirementsSection" />

## 需求

**標頭：** GameChat2.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[GameChat2 成員](/zh-TW/reference/chat/gamechat2/gamechat2_members)


## Related topics

- [語音協助工具使用者設定](/zh-TW/build/game-principles/accessibility/speech-accessibility.md)
- [chat_manager::initialize](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [GameChat2 成員](/zh-TW/reference/chat/gamechat2/gamechat2_members.md)
- [chat_user_local::speech_to_text_conversion_preference_enabled](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_speech_to_text_conversion_preference_enabled.md)
- [chat_user_local::text_to_speech_conversion_preference_enabled](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_text_to_speech_conversion_preference_enabled.md)
