Announcement

Collapse
No announcement yet.

How to use new Audio Capture Component (4.19) to drive game parameters?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    How to use new Audio Capture Component (4.19) to drive game parameters?

    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.
    andtheand

    Click image for larger version

Name:	Screen.jpg
Views:	1
Size:	134.6 KB
ID:	1448800

    #2
    You'll want to Activate the component.
    Dan Reynolds
    Technical Sound Designer || Unreal Audio Engine Dev Team

    Comment


      #3
      Try to Auto Activate it in Details Tab on a test project, but event does not appear.

      Comment


        #4
        Originally posted by dan.reynolds View Post
        You'll want to Activate the component.
        Thanks, I had the same problem.

        Also, I'm wondering what's the use of Attenuation settings for Audio Capture components ?! does it affect how sound is being captured ?!
        ALLLESSS.com

        Comment


          #5
          Originally posted by Alllesss View Post

          Thanks, I had the same problem.

          Also, I'm wondering what's the use of Attenuation settings for Audio Capture components ?! does it affect how sound is being captured ?!
          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!

          Comment


            #6
            Originally posted by andtheand View Post

            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.

            ALLLESSS.com

            Comment


              #7
              Have same problems. I 100% have active and working audio input. Still get 0

              Comment


                #8
                Originally posted by newturok View Post
                Have same problems. I 100% have active and working audio input. Still get 0
                @ newturok: I first had to activate the new audio engine which is still deactivated by default in 4.19. Check this out: Link

                Now it works. Nice!

                Comment


                  #9
                  Originally posted by andtheand View Post
                  @ newturok: I first had to activate the new audio engine which is still deactivated by default in 4.19. Check this out: Link
                  Now it works. Nice!
                  That helps, thanks.

                  For getting awesome results out of this will be nice if Unreal add SoundWave out from OnAudioEnvelopeValue event like it is for Audio Component

                  Comment


                    #10
                    New microphone capture component (New Audio Engine Only) (Windows Only)

                    When this will be android too? <3

                    Comment


                      #11
                      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.

                      Comment


                        #12
                        Originally posted by THOIID View Post
                        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.
                        Did you turn on the new Unreal Audio Engine?
                        Dan Reynolds
                        Technical Sound Designer || Unreal Audio Engine Dev Team

                        Comment

                        Working...
                        X