diff --git a/utils/audio.py b/utils/audio.py index 05694dce..708f0853 100644 --- a/utils/audio.py +++ b/utils/audio.py @@ -247,7 +247,7 @@ class AudioProcessor(object): print(f' [!] File cannot be trimmed for silence - {filename}') assert self.sample_rate == sr, "%s vs %s"%(self.sample_rate, sr) if self.sound_norm: - x = x / abs(x.max()) * 0.9 + x = x / abs(x).max() * 0.9 return x @staticmethod