You are not logged in.

#1 2022-11-04 16:45:46

BubbleFish
Member
Registered: 2022-10-16
Posts: 9

Change volume of SoX (or some other whitenoise generator)

I need to play a very quiet whitenoise on background, and I found a command that can play such noise:

play -n synth whitenoise

except, I actually got jumpscared when I first used it because of how loud this thing is, I tried using -v argument, but it doesn't seem to affect the output audio at all.

Anyone has any idea how I could solve this?

(I have been using Blanket before, but it's really not optimal to have a GUI application running on background + it uses python which takes quite a bit of ram)

Offline

#2 2022-11-04 17:58:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: Change volume of SoX (or some other whitenoise generator)

Assuming you're using a sound server, lowering the volume there directly should stick, e.g. in pavucontrol or so.

Offline

#3 2022-11-05 08:04:25

BubbleFish
Member
Registered: 2022-10-16
Posts: 9

Re: Change volume of SoX (or some other whitenoise generator)

Is there a way to do it through command line e.g. in one command so that I could autostart it properly at the right volume?

Offline

#4 2022-11-05 09:18:01

Vedun
Member
Registered: 2022-11-05
Posts: 3

Re: Change volume of SoX (or some other whitenoise generator)

play -n synth whitenoise gain 0

play -n synth whitenoise gain -10

play -n synth whitenoise gain -20

play -n synth whitenoise gain -40


https://linux.die.net/man/1/play

Last edited by Vedun (2022-11-05 09:20:20)

Offline

#5 2022-11-14 17:39:13

BubbleFish
Member
Registered: 2022-10-16
Posts: 9

Re: Change volume of SoX (or some other whitenoise generator)

Thank you, that helped!

Offline

Board footer

Powered by FluxBB