I run the following command to capture the output of audio into a file:
$ sox -t pulseaudio alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -t mp3 test.mp3 silence 1 0.1 3% 1 3.0 3% > /dev/null
Input File : 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor' (pulseaudio)
Channels : 2
Sample Rate : 48000
Precision : 16-bit
Sample Encoding: 16-bit Signed Integer PCM
In:0.00% 00:00:18.09 [00:00:00.00] Out:0 [ | ] Clip:0 ^C[C
As you see, while I tried to send the output to null, it stills show messages about the progress and status of recording!
I want it to record in background without showing these messages so that I can have the terminal prompts....
I checked sox
for a log file but didn't find
STDERR
, too. Replace ">
" with "&>
". Readman bash
. – waltinator Jul 21 '20 at 18:03-q
can silent it, and will post the answer later. – Ahmad Jul 23 '20 at 08:24