Skip to content

Commit

Permalink
[scripts] Make reverberate_data_dir.py handle vad.scp (#3619)
Browse files Browse the repository at this point in the history
  • Loading branch information
danpovey authored Sep 29, 2019
1 parent 6b1ef76 commit 5d1fff2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions egs/wsj/s5/steps/data/reverberate_data_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ def create_reverberated_copy(input_dir,
add_prefix_to_fields(input_dir + "/segments", output_dir + "/segments", num_replicas, include_original, prefix, field = [0,1])
if os.path.isfile(input_dir + "/reco2file_and_channel"):
add_prefix_to_fields(input_dir + "/reco2file_and_channel", output_dir + "/reco2file_and_channel", num_replicas, include_original, prefix, field = [0,1])
if os.path.isfile(input_dir + "/vad.scp"):
add_prefix_to_fields(input_dir + "/vad.scp", output_dir + "/vad.scp", num_replicas, include_original, prefix, field=[0])

data_lib.RunKaldiCommand("utils/validate_data_dir.sh --no-feats --no-text {output_dir}"
.format(output_dir = output_dir))
Expand Down

0 comments on commit 5d1fff2

Please sign in to comment.