khalida1wwin
commited on
Commit
·
f25a740
1
Parent(s):
1ee4959
update app.py
Browse files
app.py
CHANGED
@@ -190,13 +190,16 @@ audio_output_prediction, sample_rate, min_duration, frame_length, hop_length_fra
|
|
190 |
sf.write(dir_save_prediction + audio_output_prediction , denoise_long[0, :], sample_rate)
|
191 |
|
192 |
def denoise_audio(audioName):
|
193 |
-
|
194 |
testNo = audioName
|
195 |
# audio_dir_prediction = os.path.abspath("/")+ str(testNo) +".wav"
|
196 |
sample_rate, datalist = audioName[0], audioName[1]
|
|
|
|
|
197 |
data = np.ndarray(datalist)
|
198 |
len_data = len(data) # holds length of the numpy array
|
199 |
-
print("typppppeeeeee:"
|
|
|
200 |
print(data)
|
201 |
|
202 |
t = len_data / sample_rate # returns duration but in floats
|
|
|
190 |
sf.write(dir_save_prediction + audio_output_prediction , denoise_long[0, :], sample_rate)
|
191 |
|
192 |
def denoise_audio(audioName):
|
193 |
+
# print("typppppeeeeee:",type(audioName))
|
194 |
testNo = audioName
|
195 |
# audio_dir_prediction = os.path.abspath("/")+ str(testNo) +".wav"
|
196 |
sample_rate, datalist = audioName[0], audioName[1]
|
197 |
+
print("typppppeeeeee:")
|
198 |
+
print(type(data))
|
199 |
data = np.ndarray(datalist)
|
200 |
len_data = len(data) # holds length of the numpy array
|
201 |
+
print("typppppeeeeee:")
|
202 |
+
print(type(data))
|
203 |
print(data)
|
204 |
|
205 |
t = len_data / sample_rate # returns duration but in floats
|