Notebook update for testing

This commit is contained in:
Eren Golge
2018-04-10 09:37:15 -07:00
parent 5442d8c734
commit 073bc032f6
2 changed files with 12 additions and 24 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class AudioProcessor(object):
def save_wav(self, wav, path):
wav *= 32767 / max(0.01, np.max(np.abs(wav)))
librosa.output.write_wav(path, wav.astype(np.int16), self.sample_rate)
librosa.output.write_wav(path, wav.astype(np.float), self.sample_rate)
def _linear_to_mel(self, spectrogram):
global _mel_basis