Programmatic control of input gain?

Hi! I am using one of my Pisounds as a streaming audio capture device, to continuously stream environmental sound that it picks up with a Wildtronics stereo mic (I did the mod to allow Pisound to send PIP). It’s running headless in a protective box in the field. Streaming is 48K FLAC via butt and icecast2. It has an ethernet connection, which also supplies power (PoE, but obviously not using the PoE hat). I can easily ssh in to control things, but I was wondering, is there any way to control the input gain using software? Sometimes I want to do that but it’s not always convenient to go outside, open the box, and adjust the knob.

The volume potentiometers are fully analog, so they can’t be controlled via software. However, there’s ought to be some ways to control the volume in digital domain from software.

Are you using Icecast? How do you start the server?

There might be some built in way in Icecast to do it remotely, or you might have to set up some ALSA plugins, or use Jack backend with some plugins if using Jack is possible.

Ok, makes sense if the control is fully analog. I’m not looking for volume control as much as I’m looking for control over input sensitivity. But it’s not that big a deal, usually I can just find a good level and leave it alone. For software I’m using butt together with icecast2, and it’s using ALSA. I should have some options there to control volume, even if I can’t adjust input gain. Thanks!

1 Like