diff --git a/README.md b/README.md index 3393da5..49edbb5 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,10 @@ _Not all options working now!_ --vosk Needs model [extra] - (-k Keep audio chunks) # In Progress - --hyphenation (default) True|False + (-k Keep audio chunks) # In Progress + --hyphenation (default) True|False + --disable_separation True|False + --disable_karaoke True|False [pitcher] --crepe (default) tiny|small|medium|large|full @@ -127,3 +129,12 @@ If you want solid accurate, then use the `full` model. ```commandline -i XYZ --crepe full ``` + +### Separation + +The vocals are separated from the audio before they are passed to the models. If problems occur with this, +you have the option to disable this function and the original audio file is used instead. + +```commandline +-i XYZ --disable_separation True +``` diff --git a/UltraSinger.py b/UltraSinger.py index 3b372ca..00a90c8 100644 --- a/UltraSinger.py +++ b/UltraSinger.py @@ -203,8 +203,10 @@ def print_help(): --vosk Needs model [extra] - (-k Keep audio chunks) # In Progress - --hyphenation (default) True|False + (-k Keep audio chunks) # In Progress + --hyphenation (default) True|False + --disable_separation True|False + --disable_karaoke True|False [pitcher] --crepe (default) tiny|small|medium|large|full @@ -394,7 +396,7 @@ def do_audio_stuff(): def main(argv): short = "hi:o:amv:" - long = ["ifile=", "ofile=", "crepe_model=", "vosk=", "whisper=", "hyphenation="] + long = ["ifile=", "ofile=", "crepe_model=", "vosk=", "whisper=", "hyphenation=", "disable_separation="] opts, args = getopt.getopt(argv, short, long) @@ -420,6 +422,10 @@ def main(argv): settings.crepe_model_capacity = arg elif opt in ("--hyphenation"): settings.hyphenation = arg + elif opt in ("--disable_separation"): + settings.use_separated_vocal = not arg + elif opt in ("--disable_karaoke"): + settings.create_karaoke = not arg if settings.output_file_path == '': if settings.input_file_path.startswith('https:'):