Datasets:
Upload folder using huggingface_hub
Browse files
TurnMaster_processing/augment_taskmaster.py
CHANGED
|
@@ -218,8 +218,9 @@ def parse_args():
|
|
| 218 |
parser.add_argument("--VAD-energy-threshold", type=float, default=0.01, help="Energy threshold used by the energy based VAD for speech segmentation before silence insertion.")
|
| 219 |
parser.add_argument("--VAD-min-silence-frames", type=int, default=3, help="Min silence frame used by the energy based VAD for speech segmentation before silence insertion.")
|
| 220 |
|
| 221 |
-
parser.add_argument("--taskmaster-root-dir", type=str,
|
| 222 |
-
parser.add_argument("--
|
|
|
|
| 223 |
|
| 224 |
parser.add_argument("--add-white-noise", action="store_true", help="Required only if SNR args are provided.")
|
| 225 |
parser.add_argument("--add-bg-noise", action="store_true", help="Required only if SNR args are provided.")
|
|
@@ -657,7 +658,7 @@ def main():
|
|
| 657 |
raise RuntimeError("No noise files found.")
|
| 658 |
|
| 659 |
speech_files = []
|
| 660 |
-
manifest_dir = f'{args.
|
| 661 |
speech_files = process_manifest(manifest_dir, args.taskmaster_root_dir, speech_files, args)
|
| 662 |
|
| 663 |
rows = []
|
|
|
|
| 218 |
parser.add_argument("--VAD-energy-threshold", type=float, default=0.01, help="Energy threshold used by the energy based VAD for speech segmentation before silence insertion.")
|
| 219 |
parser.add_argument("--VAD-min-silence-frames", type=int, default=3, help="Min silence frame used by the energy based VAD for speech segmentation before silence insertion.")
|
| 220 |
|
| 221 |
+
parser.add_argument("--taskmaster-root-dir", type=str, required=True, help="The root leading to the manifest.csv and the audios.")
|
| 222 |
+
parser.add_argument("--manifest-dir", type=str, required=True, help="The manifest to use to build the new TurnMaster version.")
|
| 223 |
+
parser.add_argument("--aug-dataset-save-dir", type=str, required=True, help="The directory to save the dataset version.")
|
| 224 |
|
| 225 |
parser.add_argument("--add-white-noise", action="store_true", help="Required only if SNR args are provided.")
|
| 226 |
parser.add_argument("--add-bg-noise", action="store_true", help="Required only if SNR args are provided.")
|
|
|
|
| 658 |
raise RuntimeError("No noise files found.")
|
| 659 |
|
| 660 |
speech_files = []
|
| 661 |
+
manifest_dir = f'{args.manifest_dir}'
|
| 662 |
speech_files = process_manifest(manifest_dir, args.taskmaster_root_dir, speech_files, args)
|
| 663 |
|
| 664 |
rows = []
|