Ok thank you, I have found this way to print some values.
Code:
arecord -r 48000 -qd 1 test.wav && sox test.wav -n stat
Samples read: 48000
Length (seconds): 1.000000
Scaled by: 2147483647.0
Maximum amplitude: 0.320313
Minimum amplitude: -0.343750
Midline amplitude: -0.011719
Mean norm: 0.101320
Mean amplitude: -0.009666
RMS amplitude: 0.119220
Maximum delta: 0.125000
Minimum delta: 0.000000
Mean delta: 0.017759
RMS delta: 0.022904
Rough frequency: 1467
Volume adjustment: 2.909
I couldnt figure out how to pipe directly to sox and I am not sure what value fits most likely the input level meter in audacity. Once I find it I will loop the command and execute it every second and write every value to a file.