Hi there! I would like to capture the mic from the oculus rift to spawn “breathe” in a winter scene (like here). So I need to safe the volume of the capured mic in realtime in a float variable. In the release notes of 4.19 I found this:
"We have implemented a Microphone Capture Component which allows:
Feeding audio directly into a game for use with the Audio Mixer
-** Driving in-game parameters using real-time amplitude data.**
Processing audio with Source Effects or Submix Effects."
I added an audio capture component to my VR Pawn and tried to activate some game logic, but I have no experience with the audio engine and probably missing something very very basic.
Thanks for any advise how to set this up. The rift mic is set as the windows default mic.
Hey Alllesss, would you mind posting yor BP setup? When I activate the audio component, the “on audio envelope” event fires all the time with a envelope value of “0”. No matter if I speak into the mic or not. Thanks!
It’s exactly like what you posted here. just an Audio capture component with “Auto Activate” enabled. If it sticks to 0 then it might be your mic setup. try checking windows’ recording devices and set the right one to active.
hi, I’ve set my microphone as default and added audio capture component (set to auto active). but somehow I still get 0 from “on audio envelope value” when I speak to the mic. please help.
Hi @6r0m, you don’t have to do a Set Sound Mix Class Override, you can just create a SoundMix Asset that defines the SFX and Mic Sound Classes and just push that when you activate and pop it when you deactivate.
If the audio capture isn’t working on 4.23 for someone reading this, try it:
try the auto activate, like dan.reynolds and said last page.
and
**2) I did this: **UseAudioMixer=true
Searched for the file:
E:\UE_4.23\Engine\Config\Windows then openned the “WindowsEngine” file and added this last line of code on bold:
[Audio]
AudioDeviceModuleName=XAudio2
; Defining below allows switching to audio mixer using -audiomixer commandline
AudioMixerModuleName=AudioMixerXAudio2
; Defines a platform-specific volume headroom (in dB) for audio to provide better platform consistency with respect to volume levels.
PlatformHeadroomDB=-3 UseAudioMixer=true