fgnt / nara_wpe

Different implementations of "Weighted Prediction Error" for speech dereverberation
MIT License
494 stars 164 forks source link

Save result as wav file #64

Closed benbro closed 2 years ago

benbro commented 2 years ago

I'm trying to save the result as wav file but getting only silence. Am I using the wrong format?

I've added this to WPE_Numpy_offline.ipynb after the Iterative WPE cell:

import soundfile
soundfile.write('output.wav', z[0].astype(np.int16), sampling_rate, 'PCM_16')
benbro commented 2 years ago
import soundfile
soundfile.write('output.wav', z.T, sampling_rate)