spleeter
spleeter copied to clipboard
File sepration time
To bring more precision: actually 25s for a single audio file may be right as there is quite a big overhead for building the model (~20s). Once the model is built, separation should be about 100x real time (i.e. ~3s for a 5min audio file). So if you need to separate a lot of files, you can build the model only once using a single command for batch processing or instantiating a single
Separator
in the python API and calling several times theseparate
methods.
Is this 3 seconds is the complete time for separation? means time from when I hit the command to when it shows completed and generates the separated files.
What I try to understand is the time you have mentioned 3 seconds is for the complete process or only for the separation.
Command:- spleeter separate --verbose Wav_45mb.wav recording10.wav -p spleeter:4stems -o output5
Hi @Sameerhesta,
3s (which is just an order of magnitude) is the actual processing time for separation only without model loading overhead. If you want to measure the separation time accurately, use a Separator
object and time the separate
or separate_to_file
(which will include audio file loading/writing as well), as described here.