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