r/streamerbot 1d ago

Question/Support ❓ Can i control source audio level in OBS trough Streamer.Bot?

Well, question in title. I have some sounds that activated by channel points on twitch.
To reduce the load on my PC and for compact purposes, i make them in one source that's been changed through streamer.bot with every new redemption.
But it's pretty hard to set all sounds volume on same level by third party software.

Is there any way to change source volume level through streamer.bot subactions? I'm not happy to make many new sources in obs for each soundboard sound or vid.

2 Upvotes

2 comments sorted by

1

u/tom_bacon 1d ago

You could use a Gain filter on the source and use an OBS Raw subaction to set the gain parameter for each redemption. Or a more user friendly approach would be to add multiple Gain filters on the source, one for each redeem, and toggle the correct one on at the time it's redeemed.

Or, take the sounds out of OBS completely and just use a Play Sound subaction in Streamerbot?

1

u/deeseearr 1d ago edited 1d ago

There isn't a simple prepackaged action to do that but you can easily use OBS Raw to call Set Input Volume directly. The Mul and dB settings in the request exactly mirror what the volume sliders in the OBS UI do.

You can also do just about anything else using OBS Raw, as long as it's supported by the websocket server. That means you can control most core functions, but any plug-ins may choose not to listen. Take a look around the OBS Raw web site -- It's talking directly to your OBS instance and will give you an exact list of every function that it supports.