Download

Voice capture fails in UE5 EA

Hi, I have been trying to get audio from a microphone using the following code.
I can’t create VoiceCapture.
It worked in UE4.25, but it fails in UE5 EA.

#DefaultEngine.ini

[Voice]
bEnabled=true

#define

#define DEFAULT_DEVICE_NAME TEXT("Default Device")

#code

VoiceCapture = FVoiceModule::Get().CreateVoiceCapture(DEFAULT_DEVICE_NAME, SampleRate, 1);