Can't create a voice capture object in C++

Hello community,

I am trying to capture sound from a microphone and play it back in a scene, from an characters mouth.

I am trying to use the available IVoiceCapture interface but I am running into a problem.
I am asuming that when the engine loads the module, and starts it up, it fails. Although I don’t know why, and how to solve this.

The log says : LogVoice:Warning: Failed to initialize voice interface
Even before I try to acces the voice module and create a voice capture object. That’s probably I included “Voice” as a module in the build.cs

Why can I not create a voice capture object and why can’t the engine load the module?

Link to Log

CODE:

// Called when the game starts or when spawned
void AMicrophoneActor::BeginPlay() {
	Super::BeginPlay();

	GLog->Log("WHEN??");

	VoiceCapture = FVoiceModule::Get().CreateVoiceCapture();

	if (VoiceCapture.IsValid()) {
		GLog->Log("Voice capture WORKED");
		VoiceCapture->Start();
	} else {
		GLog->Log("Voice capture FAILED");
	}
}

Hi! The same problem I get.
Have u ever consolved it?
I just find some hiccups.
First, It is need to edit the DefaultEngine.txt, just like thats link text

Second, there r two functions, but I dont know their influnces to the capture.

The one:

FVoiceModule::Get().IsAvailable()

Second:

FVoiceModule::Get().IsVoiceEnabled()

But I still cannot create a capture, the system says that ‘LogVoiceCapture:Warning: Failed to create capture device 0x88780078’ on the OutLog page.

I am in trouble, how about your Proj?

Have you guys resolved the issue? I am going to implement a voice chat very soon and might encounter the same issue. If I do, I will resolve it in time (no choice), and I will provide you with the answer if I do encounter it.

I’m sorry to say that we found another solution for this project that has ended. We haven’t been able to solve this issue.

If you find the solution, would you be so kind to post it here?

yea of course, I’ll let you know if I do