diff --git a/test/test_datasets.py b/test/test_datasets.py index 3ac7fae8ac..a02c365dec 100644 --- a/test/test_datasets.py +++ b/test/test_datasets.py @@ -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): diff --git a/test/test_sox_compatibility.py b/test/test_sox_compatibility.py index 23d58a3fb1..cafcca71fc 100644 --- a/test/test_sox_compatibility.py +++ b/test/test_sox_compatibility.py @@ -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])