Skip to content

Commit

Permalink
[scripts] Fix bug in utils/data/resample_data_dir.sh (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhadian authored and danpovey committed Oct 2, 2018
1 parent 3d3d02e commit 168789d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions egs/wsj/s5/utils/data/resample_data_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ for line in sys.stdin.readlines():
if splits[-1] == '|':
out_line = line.strip() + ' $sox -t wav - -c 1 -b 16 -t wav - rate $freq |'
else:
out_line = 'cat {0} {1} | $sox -t wav - -c 1 -b 16 -t wav - rate $freq |'.format(splits[0], ' '.join(splits[1:]))
out_line = '{0} cat {1} | $sox -t wav - -c 1 -b 16 -t wav - rate $freq |'.format(splits[0], ' '.join(splits[1:]))
print (out_line)" > ${dir}/wav.scp
rm $dir/wav.scp.tmp

0 comments on commit 168789d

Please sign in to comment.