Reading voice capture data from microphone stops after a few reads; can't read in sound continuously

Hi everyone,

I’ve gone about implementing microphone input functionality on my Windows 10 machine based on the tutorial here: https://answers.unrealengine.com/questions/347976/basic-microphone-input-with-ue4.html. I’ve gotten it to a point where I have sound coming in and can even hear it in playback, but I’m not able to read in the sound buffer continuously. After a few ticks (even if there is a strong microphone input) it just pretends as if there is no data.

The reading starts again only if there is a pause of silence in the microphone input and then the input sound is resumed.

I tried messing with timers and settings but in the end found a log warning that keeps popping up: LogVoiceCapture: Warning: Resetting UncompressedAudioBuffer

This I found belongs to the file VoiceCaptureWindows.cpp, and it seems as if this uncompressed audio buffer keeps overflowing. Not sure whether this has anything to do with it.

Any help appreciated :slight_smile: Can’t find a place where this problem has been faced, so feel free to point me in the right direction even

I dont know why this like not working for me
https://answers.unrealengine.com/questions/347976/basic-microphone-input-with-ue4.html.

Have you found any solution to your problem ? I face the same issue right now.

Hey! not yet, I’ve temporarily given up on it but I might start trying to make it work again next month. I’ll post any progress here.

Weird, it doesn’t work for me either any more.

Maybe this is helpful? How can i create an Microphone Input in UE4 ? (help please) - Audio - Unreal Engine Forums

I haven’t tried it yet

AudioCapture component is only working within windows, not android or ios yet.

For this thread link text

I provided the code that also solved ur problem, however for some reason is not working on some devices.

I see, thank you! I don’t think I will be developing for Android/iOS so I probably won’t be trying across devices yet, but if I come across anything I’ll put it here.