語法
enum class PartyVoiceChatTranscriptionOptions
{
None = 0x0,
TranscribeSelf = 0x1,
TranscribeOtherChatControlsWithMatchingLanguages = 0x2,
TranscribeOtherChatControlsWithNonMatchingLanguages = 0x4,
TranslateToLocalLanguage = 0x10,
DisableProfanityMasking = 0x20,
TranscribeSelfRegardlessOfNetworkState = 0x40,
}
常數
| 常數 | 描述 |
|---|---|
| None | 不會轉譯任何聊天控制項。 |
| TranscribeSelf | 在與至少一個其他聊天控制項位於同一網路中時,會產生本機聊天控制項的轉譯,並透過 PartyVoiceChatTranscriptionReceivedStateChange 事件提供給同一個本機聊天控制項。 |
| TranscribeOtherChatControlsWithMatchingLanguages | 會產生與本機聊天控制項語言相同之其他聊天控制項的轉譯,並透過 PartyVoiceChatTranscriptionReceivedStateChange 事件提供給本機聊天控制項。 |
| TranscribeOtherChatControlsWithNonMatchingLanguages | 會產生語言與本機聊天控制項語言不同之其他聊天控制項的轉譯,並透過 PartyVoiceChatTranscriptionReceivedStateChange 事件提供給本機聊天控制項。 根據預設,轉譯不會翻譯。也可以加入 TranslateToLocalLanguage 來啟用翻譯為本機聊天控制項的語言。 |
| TranslateToLocalLanguage | 轉譯將翻譯為本機聊天控制項的語言。 依照其他 PartyVoiceChatTranscriptionOptions 值所指定產生的轉譯,會翻譯為本機聊天控制項的語言,該語言由 PartyLocalChatControl::GetLanguage() 指定。翻譯會連同原始轉譯一起透過 PartyVoiceChatTranscriptionReceivedStateChange 事件提供。 如果啟用翻譯,每個產生的 PartyVoiceChatTranscriptionReceivedStateChange 中一律會提供與本機聊天控制項語言對應的翻譯。如果說話之聊天控制項的語言與本機聊天控制項的語言相同,轉譯和翻譯字串將會完全相同。 除非也與 TranscribeSelf、TranscribeOtherChatControlsWithMatchingLanguages 和 TranscribeOtherChatControlsWithNonMatchingLanguages 的一或多個結合,否則此選項沒有作用。 |
| DisableProfanityMasking | 提供轉譯時不遮罩不雅用語。 根據預設,不雅用語會以星號取代每個字元的方式遮罩。例如,4 個字母的不雅用語會被取代為 ”****“。啟用此選項時,不會對不雅用語套用任何遮罩;會提供原始文字。 |
| TranscribeSelfRegardlessOfNetworkState | 無論聊天控制項是否與任何其他聊天控制項位於同一網路中,都會產生本機聊天控制項的轉譯,並透過 PartyVoiceChatTranscriptionReceivedStateChange 提供給同一個本機聊天控制項。 此選項會覆寫 TranscribeSelf。此選項是為了回溯相容性而提供,通常不應使用。 |
需求
標頭: Party.h另請參閱
Party 成員PartyLocalChatControl::SetTranscriptionOptions
PartyVoiceChatTranscriptionReceivedStateChange
PartyVoiceChatTranscriptionPhraseType
