Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions test/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ def test_cmuarctic(self):
data[0]


@common_utils.skipIfNoSoxBackend
class TestCommonVoice(common_utils.TorchaudioTestCase):
backend = 'sox'
path = common_utils.get_asset_path()

def test_commonvoice(self):
Expand Down
5 changes: 4 additions & 1 deletion test/test_sox_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ def test_lowpass(self):

cutoff_freq = 3000

noise_filepath = common_utils.get_asset_path('whitenoise.wav')
noise_waveform = common_utils.get_whitenoise(sample_rate=44100, duration=5)
noise_filepath = self.get_temp_path('whitenoise.wav')
common_utils.save_wav(noise_filepath, noise_waveform)

E = torchaudio.sox_effects.SoxEffectsChain()
E.set_input_file(noise_filepath)
E.append_effect_to_chain("lowpass", [cutoff_freq])
Expand Down