bug fix for sound normalization

pull/10/head
root 2020-01-07 18:48:54 +01:00
parent 6e09224697
commit 93399564c5
1 changed files with 1 additions and 1 deletions

View File

@ -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