Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_gaussian_noise(self):
samples = np.zeros((20,), dtype=np.float32)
sample_rate = 16000
augmenter = Compose([AddGaussianNoise(p=1.0)])
samples = augmenter(samples=samples, sample_rate=sample_rate)
self.assertEqual(samples.dtype, np.float32)
self.assertNotAlmostEqual(float(np.sum(np.abs(samples))), 0.0)