Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ import soundfile as sf
|
|
5 |
def greet(name):
|
6 |
print("np array" , name)
|
7 |
# step1 - converting a wav file to numpy array and then converting that to mel-spectrogram
|
8 |
-
|
9 |
-
|
|
|
10 |
#Export wav
|
11 |
|
12 |
# step4 - save it as a wav file
|
|
|
5 |
def greet(name):
|
6 |
print("np array" , name)
|
7 |
# step1 - converting a wav file to numpy array and then converting that to mel-spectrogram
|
8 |
+
S_inv = librosa.feature.inverse.mel_to_stft(name, sr=sr, n_fft=512*4)
|
9 |
+
y_inv = librosa.griffinlim(S_inv, n_iter=n_iter,
|
10 |
+
hop_length=2048)
|
11 |
#Export wav
|
12 |
|
13 |
# step4 - save it as a wav file
|