Volume for Audio Panel?

#1

Hey Guys

can you implemented a volume function for the sounds in the Audio Panel?
Or must i lower the volume of the sounds?

thx a lot for help

Sicfragger :slight_smile:

#2

I think if you go in web\alerts\js\alertHandler.js you can change the volume on this line:

imageVolume = 0.8,

Or at the very least, this one:

audioObj.volume = imageVolume;

It’s a decimal based volume. 1.0 = 100%. 0.0 = 0%. 0.5 = 50%

#3

thx i try this one :slight_smile:

#4

Hmmm it dont work and at last one are no numbers to change them :frowning:

#5

Correct, the last one is assigning the variable audioObj.volume to the value of the variable imageVolume

You would replace imageVolume with a number, like this:

BEFORE:
audioObj.volume = imageVolume;
AFTER:
audioObj.volume = 0.3;

#6

Unfortunately that does not work for me.
Can you show me the correct value for PhantomBot 2.3.9.1?
I still changed the values but this doesnt change anything.

#7

Just going through old requests, this can now be done.

See OBS Browser Source for Gif Alerts and Sound FX for more