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
标签:遍历,长度,length,aishell,wav,txt,scp,sox
来源: https://www.cnblogs.com/fanhaha/p/12358184.html