Why cant i get voice chat interface?

Kokapuk
Sun, 09 Apr 2023 10:35:25 +0000
C++

void UAdvancedVoiceLibrary::StartNetworkedVoice(uint8 LocalPlayerNum)
{
IOnlineVoicePtr VoiceInterface = Online::GetVoiceInterface();

if (!VoiceInterface.IsValid())
{
	UE_LOG(AdvancedVoiceLog, Warning, TEXT("Start Networked Voice couldn't get the voice interface!"));
	return;
}

VoiceInterface->StartNetworkedVoice(LocalPlayerNum);

}

IsValid() always false, and voice chat not working.
Here is my DefaultEngine:

[Voice]

bEnabled=true

[OnlineSubsystem]

DefaultPlatformService=Steam

bHasVoiceEnabled=true

[OnlineSubsystemSteam]

bEnabled=true

2 posts - 2 participants