nakas commited on
Commit
95edbc2
1 Parent(s): f967554

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- audio = librosa.feature.inverse.mel_to_audio(name)
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