mirror of https://github.com/coqui-ai/TTS.git
Notebook updates
This commit is contained in:
parent
a25ba81296
commit
78d7c44198
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@ class AudioProcessor(object):
|
||||||
|
|
||||||
def save_wav(self, wav, path):
|
def save_wav(self, wav, path):
|
||||||
wav *= 32767 / max(0.01, np.max(np.abs(wav)))
|
wav *= 32767 / max(0.01, np.max(np.abs(wav)))
|
||||||
librosa.output.write_wav(path, wav.astype(np.float), self.sample_rate)
|
librosa.output.write_wav(path, wav.astype(np.float), self.sample_rate, norm=True)
|
||||||
|
|
||||||
def _linear_to_mel(self, spectrogram):
|
def _linear_to_mel(self, spectrogram):
|
||||||
global _mel_basis
|
global _mel_basis
|
||||||
|
|
Loading…
Reference in New Issue