遍历所有wav得到长度

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

posted @ 2020-02-24 18:48  hahahaf  阅读(227)  评论(0编辑  收藏  举报