I’m trying to implement a locally controlled volume slider in my UI that allows players to adjust the voice volume of specific other players individually. I want each player to have their own volume slider that only affects how loud that particular player sounds to the local user.
What i’ve already tried:
Here is how i’m setting my voice chat via the VOIPTalker component:
Hey, thanks man. But is adjusting the volume through a sound effect really the right approach? I mean, if it works I’m fine with it, but I’ve been trying all day and just couldn’t get it to work.
Isn’t there a simpler way to handle this? From what I’ve heard, the VOIP Talker component spawns an audio component at runtime whenever a player speaks. If I can capture that audio component, I might be able to adjust it using the ‘Set Volume Multiplier’ node and setting it equal to the volume slider amount in the UI.
Its not a wrong approach depending on what you prefer, is up to you really.
You can detect spawned actors by subsciribing to a global delegate. I cant recall now,but its easy to find.
Beware that it will trigger for all spawned actors.
I dont know the specifics of voip components. But i know they can be tricky. I would assume theres a more streamlined approach but im not aware of it currently.
Hey, did you find a solution? I was also thinking about changing the sound class parameters, but I’m not sure about the part where it only works for you. It should definitely be possible to change someone’s volume for everyone.