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
2024-03-25 07:56:27
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