# Get current output volume of an AudioComponent

**URL:** <https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303>\
**Category:** Audio\
**Tags:** wave, unreal-engine, question\
**Created:** [September 13, 2016, 11:39am UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303 "2016-09-13T11:39:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jemballs](https://forums.unrealengine.com/u/jemballs)\
**Post date:** [September 13, 2016, 11:39am UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/1 "2016-09-13T11:39:34Z")

</div>

I’d like to get the output volume of an AudioComponent on the current frame. Not the “volume setting”, but the ACTUAL output volume from the WaveParam being played. Currently these AudioComponents have a SoundCue that only plays a WaveParam.

I am using this with dialogue, and my current goal is to trying to detect spaces between words - if any. So that during playback if the output volume drops to a specific point, I can flag this as a “space” and stop the dialogue, or do whatever else I’d hope to do.

Things like attenuation, AudioVolumes etc. etc. doesn’t really matter in this case. Preferably it’d be nice to not factor any of these things in since the purpose of detecting low output volume is for detecting spaces between words.

Can anyone point me in the right direction? C++ or Blueprint is fine. I’ve done a bunch of research but can’t seem to find what I need.

---

<div class="post-metadata">

**Author:** ![Minus\_Kelvin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/minus_kelvin/32/1124977_2.png) [@Minus\_Kelvin](https://forums.unrealengine.com/u/Minus_Kelvin)\
**Post date:** [September 13, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/2 "2016-09-13T16:19:21Z")

</div>

There isn’t a way to get the real-world volume of audio yet in UE4. As in, the volume of the waveforms playing for a given voice. You can get (what I call) the logical volume of a wave instance using GetVolume() (at head revision) or GetActualVolume() (at earlier revisions). But that’s not exposed to BP.

However, I think you should be able to get what it sounds like you want doing OnAudioFinished delegates, which triggers a BP delegate/event when a sound on an audio component finishes playing.

---

<div class="post-metadata">

**Author:** ![jemballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jemballs](https://forums.unrealengine.com/u/jemballs)\
**Post date:** [September 14, 2016, 7:10am UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/3 "2016-09-14T07:10:56Z")

</div>

Thanks for the reply! I’ll look into GetVolume/GetActualVolume now and see how I go.

OnAudioFinished is not what I want. I don’t want to detect the end of a dialogue line, I’d like to detect spaces between words (if at all possible, this is what I’m researching).

---

<div class="post-metadata">

**Author:** ![jemballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jemballs](https://forums.unrealengine.com/u/jemballs)\
**Post date:** [September 14, 2016, 8:41am UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/4 "2016-09-14T08:41:37Z")

</div>

Looks like GetActualVolume is not what I need. This just returns the volume set for the AudioComponent (in my case, constantly 0.75 - so this is obviously not representative of the wave data). I would like to get the volume/levels/wave amplitude of the actual wave file as it is being played.

---

<div class="post-metadata">

**Author:** ![jemballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jemballs](https://forums.unrealengine.com/u/jemballs)\
**Post date:** [September 14, 2016, 9:49am UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/5 "2016-09-14T09:49:20Z")

</div>

I found the solution. After enabling Sound Visualizations Plugin (I believe this comes with the engine) in the editor, there was a new GetAmplitude() global function exposed. This does what I need.

---

<div class="post-metadata">

**Author:** ![Minus\_Kelvin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/minus_kelvin/32/1124977_2.png) [@Minus\_Kelvin](https://forums.unrealengine.com/u/Minus_Kelvin)\
**Post date:** [September 14, 2016, 5:21pm UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/6 "2016-09-14T17:21:04Z")

</div>

That’s what I meant when I said,

> There isn’t a way to get the real-world volume of audio yet in UE4. As in, the volume of the waveforms playing for a given voice.

---

<div class="post-metadata">

**Author:** ![Minus\_Kelvin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/minus_kelvin/32/1124977_2.png) [@Minus\_Kelvin](https://forums.unrealengine.com/u/Minus_Kelvin)\
**Post date:** [September 14, 2016, 5:21pm UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/7 "2016-09-14T17:21:35Z")

</div>

I forgot about that plugin though!

---

<div class="post-metadata">

**Author:** ![ameson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ameson](https://forums.unrealengine.com/u/ameson)\
**Post date:** [January 25, 2019, 1:12pm UTC](https://forums.unrealengine.com/t/get-current-output-volume-of-an-audiocomponent/370303/8 "2019-01-25T13:12:31Z")

</div>

But is it possible to make final build wit Sound Visualizations Plugin tho?
