Skip to content

Commit

Permalink
Update create_chunks.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mravanelli authored Mar 5, 2018
1 parent 66b5301 commit 01d4fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_chunks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ "$ord" = "1" ]; then
cat $data_folder/wav.scp | \
while read -r line ; do
id="$(echo $line | awk '{print $1}')"
file="$(echo $line | awk -F '.wav' '{printf "%s.wav\n", $2}')"
file="$(echo $line | awk '{gsub(/\|/,"");print $NF}')"
len="$(soxi -D $file)"
echo $len
done > $data_folder/file_len.scp
Expand Down

0 comments on commit 01d4fc5

Please sign in to comment.