mirror of https://github.com/coqui-ai/TTS.git
Bug fix audio saving
This commit is contained in:
parent
10c2ff2074
commit
a165cd7bda
|
@ -37,7 +37,7 @@ class AudioProcessor(object):
|
|||
print(" | > Preemphasis is deactive.")
|
||||
|
||||
def save_wav(self, wav, path):
|
||||
wav_norm *= 32767 / max(0.01, np.max(np.abs(wav)))
|
||||
wav_norm = wav * (32767 / max(0.01, np.max(np.abs(wav))))
|
||||
librosa.output.write_wav(path, wav_norm.astype(np.int16), self.sample_rate)
|
||||
|
||||
def _linear_to_mel(self, spectrogram):
|
||||
|
|
Loading…
Reference in New Issue