Batch measurements of .wav files with sox stats
My question is similar to a previous question about "get-mean-amplitude-of-wav-from-sox": Get Mean amplitude(only) of .wav from sox I would like to be able to use the stats sox to do batch measurements of 1,000's of .wav files in a directory, and store the results in a data frame or some similar structure I can save as a csv text file. For one sound file, the code would be: ./sox SampleSound.wav -n stat Resulting in the following output: Samples read: 72000000 Length (seconds): 3600.000000 Scaled by: 2147483647.0 Maximum amplitude: 0.778809 Minimum amplitude: -1.000000 Midline amplitude: -0