torch-audiomentations icon indicating copy to clipboard operation
torch-audiomentations copied to clipboard

Get rid of librosa dependency in favor of torchaudio

Open hbredin opened this issue 3 years ago • 3 comments

torchaudio now does a good job loading and resampling audio.

Would be nice to get rid of (sometimes tricky to install) librosa in favor of torchaudio.

Related: #9

hbredin avatar Apr 13 '22 11:04 hbredin

Good! Yeah, I agree, let's get rid of the librosa dependency. I haven't followed the progress in torchaudio closely. Did they speed up their resampling since https://github.com/asteroid-team/torch-audiomentations/issues/37#issuecomment-724691882 ?

iver56 avatar Apr 13 '22 11:04 iver56

Since version 0.8.0 the resampling in torchaudio is based on julius.

Leveraged julius resampling implementation to make resampling faster. (https://github.com/pytorch/audio/pull/1087)

Bomme avatar May 10 '22 15:05 Bomme

Related: https://pytorch.org/audio/stable/tutorials/audio_resampling_tutorial.html#comparison-against-librosa

hbredin avatar May 19 '22 19:05 hbredin