mirror of
https://github.com/wassname/TTS.git
synced 2026-10-24 12:00:20 +08:00
bug fix for sound normalization
This commit is contained in:
1 parent
6e09224697
commit
93399564c5
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user