| 80 | |
| 81 | |
| 82 | def parse_args(): |
| 83 | parser = argparse.ArgumentParser( |
| 84 | description="Run FlowSep inference from the Hive wrapper." |
| 85 | ) |
| 86 | parser.add_argument( |
| 87 | "--audio_file", |
| 88 | type=str, |
| 89 | default=str(TEST_DATA_DIR / "acoustic_guitar.wav"), |
| 90 | help="Input mixed audio file path.", |
| 91 | ) |
| 92 | parser.add_argument( |
| 93 | "--text", |
| 94 | type=str, |
| 95 | default="acoustic_guitar", |
| 96 | help="Text query used for source separation.", |
| 97 | ) |
| 98 | parser.add_argument( |
| 99 | "--output_file", |
| 100 | type=str, |
| 101 | default=str(TEST_DATA_DIR / "separated_audio.wav"), |
| 102 | help="Output separated audio file path.", |
| 103 | ) |
| 104 | return parser.parse_args() |
| 105 | |
| 106 | |
| 107 | def main(): |