The duration of the denoised audio is inconsistent. May I ask what the problem is? I am currently working on saving the denoised audio locally, but there is a discrepancy between the denoised audio and the original audio
`def denoise_audio(audio_path, output_path):
dwav, sr = torchaudio.load(audio_path)
dwav = dwav.mean(dim=0)
wavdenoised, = denoise(dwav, sr, device)
if wav_denoised.ndim == 1:
wav_denoised = wav_denoised.unsqueeze(0)
The duration of the denoised audio is inconsistent. May I ask what the problem is? I am currently working on saving the denoised audio locally, but there is a discrepancy between the denoised audio and the original audio `def denoise_audio(audio_path, output_path): dwav, sr = torchaudio.load(audio_path) dwav = dwav.mean(dim=0)
wavdenoised, = denoise(dwav, sr, device)
if wav_denoised.ndim == 1: wav_denoised = wav_denoised.unsqueeze(0)
![Uploading WX20240614-231737.png…]()