db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d,test/test_sox_compatibility.py,TestFunctionalFiltering,test_lowpass,#TestFunctionalFiltering#,88
Before Change
cutoff_freq = 3000
E = torchaudio.sox_effects.SoxEffectsChain()
E.set_input_file(self.noise_filepath)
E.append_effect_to_chain("lowpass", [cutoff_freq])
sox_output_waveform, sr = E.sox_build_flow_effects()
output_waveform = F.lowpass_biquad(self.noise_waveform, self.NOISE_SAMPLE_RATE, cutoff_freq)
self.assertEqual(output_waveform, sox_output_waveform, atol=1e-4, rtol=1e-5)
def test_highpass(self):
After Change
def test_lowpass(self):
cutoff_freq = 3000
sample_rate = 8000
data, path = self.get_whitenoise(sample_rate)
result = F.lowpass_biquad(data, sample_rate, cutoff_freq)
self.assert_sox_effect(result, path, ["lowpass", cutoff_freq], atol=1.5e-4)
def test_highpass(self):
cutoff_freq = 2000
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 17
Instances
Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_lowpass
Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_equalizer
Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_lowpass
Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_highpass