Commit d6dbe03f authored by Moto Hira's avatar Moto Hira Committed by Facebook GitHub Bot
Browse files

Reduce the sample rate of some tests (#2963)

Summary:
Pull Request resolved: https://github.com/pytorch/audio/pull/2963

Phaser batch consistency test takes longer than the rest.
Change the sample rate from 44100 to 8000.

Reviewed By: hwangjeff

Differential Revision: D42379064

fbshipit-source-id: 2005b833c696bb3c2bb1d21c38c39e6163d81d53
parent 5e75c8e8
...@@ -194,7 +194,7 @@ class TestFunctional(common_utils.TorchaudioTestCase): ...@@ -194,7 +194,7 @@ class TestFunctional(common_utils.TorchaudioTestCase):
self.assert_batch_consistency(func, inputs=(waveforms,)) self.assert_batch_consistency(func, inputs=(waveforms,))
def test_phaser(self): def test_phaser(self):
sample_rate = 44100 sample_rate = 8000
n_channels = 2 n_channels = 2
waveform = common_utils.get_whitenoise( waveform = common_utils.get_whitenoise(
sample_rate=sample_rate, n_channels=self.batch_size * n_channels, duration=1 sample_rate=sample_rate, n_channels=self.batch_size * n_channels, duration=1
...@@ -208,7 +208,7 @@ class TestFunctional(common_utils.TorchaudioTestCase): ...@@ -208,7 +208,7 @@ class TestFunctional(common_utils.TorchaudioTestCase):
def test_flanger(self): def test_flanger(self):
waveforms = torch.rand(self.batch_size, 2, 100) - 0.5 waveforms = torch.rand(self.batch_size, 2, 100) - 0.5
sample_rate = 44100 sample_rate = 8000
kwargs = { kwargs = {
"sample_rate": sample_rate, "sample_rate": sample_rate,
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment