Commit 2a3b0b0a authored by Quentin Aristote's avatar Quentin Aristote
Browse files

new model

parent d703ce95
This diff is collapsed.
......@@ -32,12 +32,12 @@
},
"outputs": [],
"source": [
"name = 'gen'"
"name = 'reconst'"
]
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"metadata": {
"autoscroll": false,
"collapsed": false,
......@@ -52,7 +52,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"(128, 2401)\n"
"(64, 401)\n"
]
}
],
......
%% Cell type:code id: tags:
``` python
import librosa
import numpy as np
```
%% Cell type:code id: tags:
``` python
name = 'gen'
name = 'reconst'
```
%% Cell type:code id: tags:
``` python
spectrogram = np.load('spectrograms/' + name + '.npy')
print(spectrogram.shape)
audio = librosa.feature.inverse.mel_to_audio(spectrogram, sr = 16000, n_fft = 400, hop_length = 200, win_length = 400)
librosa.output.write_wav('sounds/' + name + '.wav', audio, 16000)
```
%%%% Output: stream
(128, 2401)
(64, 401)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment