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

How can we paas model directory for Spleeter to split audios? #863

Open
suraj143rosy opened this issue Jul 27, 2023 · 0 comments
Open

How can we paas model directory for Spleeter to split audios? #863

suraj143rosy opened this issue Jul 27, 2023 · 0 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@suraj143rosy
Copy link

suraj143rosy commented Jul 27, 2023

I am using Spleeter to split audios into vocals and accompaniment. Upon executing the below code, I noticed that it downloads a model file everytime i execute the code. Is there any way to paas the model directory as a parameter in the code?

Code

def SplitFile(AudioFile,OutputPath):
model='spleeter:2stems'
if not os.path.exists(OutputPath):
os.mkdir(OutputPath)
try:
separator = Separator(model)
separator.separate_to_file(AudioFile,OutputPath,duration=10800)
print('Vocals and the music are separated and stored in the directory',flush=True)
return 'successfully splitted'
except Exception as e:
print('error in spleeter',e,flush=True)
return None

@suraj143rosy suraj143rosy added bug Something isn't working invalid This doesn't seem right labels Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant