I need to check the duration of a group of audio files. Is there a simple way to do this on the unix command-line?
> duration *
I have the a
If you are interested in finding total duration of wav files in a directory using soxi you can use this:
soxi -D input_dir/*.wav | python -c "import sys;print(sum(float(l) for l in sys.stdin))
change input_dir
according to your input directory.
If you want to find max/min duration between all wav files feel free to change sum
to max
or min
.