mirror of https://github.com/coqui-ai/TTS.git
sound norm fix
This commit is contained in:
parent
ffea1331d4
commit
7b6fe29f00
|
@ -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 / x.max() * 0.9
|
||||
x = x / abs(x.max()) * 0.9
|
||||
return x
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in New Issue