You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: