kaldi :
wav-to-duration scp:aishell_test_wav.scp ark,t:length.txt
sox:
for A in `cat aishell_test.file`
do
sox $A -n stat >> length.txt
done
cat length.txt |grep 'Length' |cut -d':' -f 2 >time.txt