コード例 #1
0
        public PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS GetPlatformUserChatTranscriptionPreferences()
        {
            PARTY_XBL_ACCESSIBILITY_SETTINGS       accessibilitySettings;
            PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS partyChatTranscriptionOptions = PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS.PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS_NONE;

            Succeeded(XBLSDK.PartyXblLocalChatUserGetAccessibilitySettings(
                          _xblLocalChatUserHandle,
                          out accessibilitySettings
                          ));
            if (accessibilitySettings != null &&
                accessibilitySettings.SpeechToTextEnabled != 0)
            {
                partyChatTranscriptionOptions = PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS.PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS_TRANSCRIBE_OTHER_CHAT_CONTROLS_WITH_MATCHING_LANGUAGES |
                                                PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS.PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS_TRANSCRIBE_SELF;
            }
            PlayFabMultiplayerManager._LogInfo("PlayFabChatXboxLivePolicyProvider:GetPlatformUserChatTranscriptionPreferences(), transcription options: " + partyChatTranscriptionOptions);

            return(partyChatTranscriptionOptions);
        }
コード例 #2
0
 internal static extern UInt32 PartyChatControlSetTranscriptionOptions(
     PARTY_CHAT_CONTROL_HANDLE chatControl,
     PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS options,
     IntPtr asyncIdentifier);
コード例 #3
0
 internal static extern UInt32 PartyChatControlGetTranscriptionOptions(
     PARTY_CHAT_CONTROL_HANDLE chatControl,
     out PARTY_VOICE_CHAT_TRANSCRIPTION_OPTIONS options);