mirror of https://github.com/coqui-ai/TTS.git
bug fix for sound normalization
parent
6e09224697
commit
93399564c5
|
@ -247,7 +247,7 @@ class AudioProcessor(object):
|
||||||
print(f' [!] File cannot be trimmed for silence - {filename}')
|
print(f' [!] File cannot be trimmed for silence - {filename}')
|
||||||
assert self.sample_rate == sr, "%s vs %s"%(self.sample_rate, sr)
|
assert self.sample_rate == sr, "%s vs %s"%(self.sample_rate, sr)
|
||||||
if self.sound_norm:
|
if self.sound_norm:
|
||||||
x = x / abs(x.max()) * 0.9
|
x = x / abs(x).max() * 0.9
|
||||||
return x
|
return x
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue