Created
April 12, 2022 22:17
-
-
Save mushonnip/7bd06fd616013cfe39fce080fbf7f0c6 to your computer and use it in GitHub Desktop.
drag and drop spleeter separate process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set argCount=0 | |
for %%x in (%*) do ( | |
set /A argCount+=1 | |
set "argVec[!argCount!]=%%~x" | |
@REM set "argName[!argCount!]=%%~nx" | |
) | |
echo Processing: %argCount% file(s) | |
echo %* | |
python -m spleeter separate -o output/ %* -c ogg -f "{filename}.{instrument}.{codec}" | |
for /L %%i in (1,1,%argCount%) do ( | |
cd output | |
ren *.vocals.ogg *. | |
ren *.vocals *.ogg | |
cd .. | |
move !argVec[%%i]! raw_done | |
) | |
@REM pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment