How do you use the microphone as an Audio Source?

I’d like to use the microphone data as an input for the sound visualization plugin. Is there any way to use the microphone as a sound source for the PC or Mac platforms?

It isn’t easily exposed, but if you wanted to write a system to capture the input from the microphone you can look at how the OnlineSubsystem does it for VOIP. Looking in TestVoice.cpp is probably a good place to start.

Actually check out the Sound Visualizations plugin. It has:

CalculateFrequencySpectrum and GetAmplitude

Both of these take a USoundWave object as input and are exposed under the “SoundVisualization” category for blueprints and C++

You should be able to find what the spectrum of a microphone blow looks like somewhere on the net and try to detect it that way.

Tommy.

I’m running into similar issues, also if samples in the visualization plugin is 0 it crashes…
Getting a “Line In” or “Mic In” would be great for all kinds of audio visualization stuff. I’m surprised it didn’t come with the visualizer plugin.

Did you create a BP node ? If so, do you plan on releasing the code, or adding it to Git-Hub / The Marketplace somehow ?

But how does one assign the microphone to a USoundWave object via blueprints or c++?

Yes I understand plugin loading, and I have the source, have looked at the VOIP code, and it’s interesting, but not easy to splice off a Mic Input node for Blueprints. And my inquiry was more to weather or nor you had made any progress and weather you were willing to share your progress, or not. Since there is obviously a need, maybe there’s a reason to make an audio IO module for the marketplace.

Sorry about the misunderstanding DCrosby.

After finding the code (TestVoice.cpp was renamed) and checking it out, its was clear the whole system was way to complex, so I gave up on it for a bit and moved on to other things.

Like you say, there is obviously a need and it would make a great marketplace plugin. But I decided to wait and see how they handle the steambox support before going down that rabbit hole.

Hello! I have the same problem. Did you solve it? Thank you!

I think one of the answers here does that: https://answers.unrealengine.com/questions/347976/basic-microphone-input-with-ue4.html