x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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");
     }
 }

Product Version: UE 4.10
Tags:
more ▼

asked Jan 13 '16 at 10:33 AM in C++ Programming

avatar image

Willem-Jan
1 1 2 3

avatar image drag00nkkk Jul 09 '16 at 09:08 AM

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?

avatar image Devgroup Feb 27 '17 at 12:53 PM

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.

avatar image Willem-Jan Feb 27 '17 at 01:18 PM

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?

avatar image Devgroup Feb 27 '17 at 05:17 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question