Notebook updates

This commit is contained in:
Eren Golge
2018-05-25 04:30:00 -07:00
parent ff245a16cb
commit 16502269ec
4 changed files with 156 additions and 1599 deletions
+141 -598
View File
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
+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.float), self.sample_rate)
librosa.output.write_wav(path, wav.astype(np.float), self.sample_rate, norm=True)
def _linear_to_mel(self, spectrogram):
global _mel_basis