Skip to content

Commit

Permalink
Linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alicangok committed Oct 5, 2023
1 parent a260d32 commit 53c02a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasets/kws20.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def augment(self, audio, fs, verbose=False):
random_shift_time = np.random.uniform(self.augmentation['shift']['min'],
self.augmentation['shift']['max'])
random_stretch_coeff = np.random.uniform(self.augmentation['stretch']['min'],
self.augmentation['stretch']['max'])
self.augmentation['stretch']['max'])

sox_effects = [["speed", str(random_stretch_coeff)], ["rate", str(fs)]]
aug_audio, _ = torchaudio.sox_effects.apply_effects_tensor(
Expand Down

0 comments on commit 53c02a4

Please sign in to comment.