mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-30 09:13:57 +09:00
14 lines
466 B
Python
14 lines
466 B
Python
import subprocess
|
|
from moduls.os_helper import move, current_executor_path, path_join
|
|
from moduls.Log import PRINT_ULTRASTAR
|
|
|
|
|
|
def separate_audio(input_file_path, output_file):
|
|
print(PRINT_ULTRASTAR + " Separating audio")
|
|
# Model selection?
|
|
# -n mdx_q
|
|
# -n htdemucs_ft
|
|
subprocess.run(["demucs", "--two-stems=vocals", input_file_path])
|
|
separated_folder = path_join(current_executor_path(), "separated")
|
|
move(separated_folder, output_file)
|