Skip to content

Commit

Permalink
update audio samples for vad testing (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Astafurov committed Apr 30, 2020
1 parent 2ebbbf5 commit b457cb7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
Binary file added test/assets/vad-go-mono-32000.wav
Binary file not shown.
Binary file added test/assets/vad-go-stereo-44100.wav
Binary file not shown.
Binary file removed test/assets/vad-hello-mono-32000.wav
Binary file not shown.
Binary file removed test/assets/vad-hello-stereo-44100.wav
Binary file not shown.
2 changes: 1 addition & 1 deletion test/test_batch_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_sliding_window_cmn(self):
_test_batch(F.sliding_window_cmn, waveform, center=False, norm_vars=False)

def test_vad(self):
filepath = common_utils.get_asset_path("vad-hello-mono-32000.wav")
filepath = common_utils.get_asset_path("vad-go-mono-32000.wav")
waveform, sample_rate = torchaudio.load(filepath)
_test_batch(F.vad, waveform, sample_rate=sample_rate)

Expand Down
4 changes: 2 additions & 2 deletions test/test_sox_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def test_vol(self):

def test_vad(self):
sample_files = [
common_utils.get_asset_path("vad-hello-stereo-44100.wav"),
common_utils.get_asset_path("vad-hello-mono-32000.wav")
common_utils.get_asset_path("vad-go-stereo-44100.wav"),
common_utils.get_asset_path("vad-go-mono-32000.wav")
]

for sample_file in sample_files:
Expand Down
2 changes: 1 addition & 1 deletion test/test_torchscript_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def test_SlidingWindowCmn(self):
self._assert_consistency(T.SlidingWindowCmn(), tensor)

def test_Vad(self):
filepath = common_utils.get_asset_path("vad-hello-mono-32000.wav")
filepath = common_utils.get_asset_path("vad-go-mono-32000.wav")
waveform, sample_rate = torchaudio.load(filepath)
self._assert_consistency(T.Vad(sample_rate=sample_rate), waveform)

Expand Down

0 comments on commit b457cb7

Please sign in to comment.