audio_resampler.resample(frame) returns a list of one audio frame that doesn't provide to_ndarray() method. Changing the line to np_snd = audio_resampler.resample(frame)[0].to_ndarray() solves the issue on me laptop. I am unsure if someone faces the same issue, but I report here for reference.
I do not recall getting this error, often version changes may cause this as well!
Thanks for sharing... I will test this and push the changes if the error persists.
Hi, I face AttributeError running this line of code. Though the error is handled, the data loader seems not to read data properly on my laptop.
https://github.com/pritamqu/AVCAffe/blob/dc2702b2e30c34b29bed796829c251c1988e0772/codes/dataloader/backend/av_wrappers.py#L119
audio_resampler.resample(frame)
returns a list of one audio frame that doesn't provide to_ndarray() method. Changing the line tonp_snd = audio_resampler.resample(frame)[0].to_ndarray()
solves the issue on me laptop. I am unsure if someone faces the same issue, but I report here for reference.