mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Bug fix audio saving
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user