public bool IsTextToSpeechEnabled() { bool isTextToSpeechEnabled = false; PARTY_XBL_ACCESSIBILITY_SETTINGS accessibilitySettings; Succeeded(XBLSDK.PartyXblLocalChatUserGetAccessibilitySettings( _xblLocalChatUserHandle, out accessibilitySettings )); if (accessibilitySettings != null && accessibilitySettings.TextToSpeechEnabled != 0) { isTextToSpeechEnabled = true; } PlayFabMultiplayerManager._LogInfo("PlayFabChatXboxLivePolicyProvider:IsTextToSpeechEnabled(), value: " + isTextToSpeechEnabled); return(isTextToSpeechEnabled); }
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); }