mirror of https://github.com/coqui-ai/TTS.git
bug fix
This commit is contained in:
parent
8fe733c166
commit
95eb3367bd
|
@ -40,7 +40,7 @@ class AudioProcessor(object):
|
|||
def save_wav(self, wav, path):
|
||||
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)
|
||||
scipy.io.wavfile.write(path, self.sample_rate, wav.astype(np.int16))
|
||||
scipy.io.wavfile.write(path, self.sample_rate, wav_norm.astype(np.int16))
|
||||
|
||||
def _linear_to_mel(self, spectrogram):
|
||||
global _mel_basis
|
||||
|
|
Loading…
Reference in New Issue