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

rate must be specified when data is a numpy array or list of audio samples #823

Closed
wensaochen opened this issue Jan 19, 2023 · 4 comments
Closed
Labels
question Further information is requested

Comments

@wensaochen
Copy link

Screenshot 2023-01-19 at 22 37 53

Anyone has ideas of this issue?

@wensaochen wensaochen added the question Further information is requested label Jan 19, 2023
@MrBanhBao
Copy link

MrBanhBao commented Jan 19, 2023

It seems like that the file 'copy.mp3' does not exists and so loading it fails.

@wensaochen
Copy link
Author

wensaochen commented Jan 20, 2023

Screenshot 2023-01-20 at 09 24 08

look at the first part, the file should be loaded. it says the rate need to be specified. how to do that?

@MrBanhBao
Copy link

MrBanhBao commented Jan 20, 2023

Normally you just need to specify the rate parameter when playing numpy arrays. You do it like this:

sr = <number>
Audio(x, rate=sr)

But you want to play an audio file, so I don't think that will solve your problem.

Looking at you code above. There is a typo in your code. You are downloading file 'Copy.mp3' (with a capital C) and trying to load the file 'copy.mp3' (small c).

@romi1502
Copy link
Member

Hi @wensaochen,
The error you reported does not seem to be related to spleeter (no spleeter code is involved only ipython one) and then it should not be reported in spleeter issues. I close it then.

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

No branches or pull requests

3 participants