Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError in dataloader #7

Open
bsyh opened this issue Jul 26, 2023 · 1 comment
Open

AttributeError in dataloader #7

bsyh opened this issue Jul 26, 2023 · 1 comment

Comments

@bsyh
Copy link

bsyh commented Jul 26, 2023

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.

np_snd = audio_resampler.resample(frame).to_ndarray()

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.

@pritamqu
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants