update
Browse files
examples/silero_vad_by_webrtcvad/step_1_prepare_data.py
CHANGED
@@ -77,6 +77,11 @@ def main():
|
|
77 |
noise_dir = Path(args.noise_dir)
|
78 |
speech_dir = Path(args.speech_dir)
|
79 |
|
|
|
|
|
|
|
|
|
|
|
80 |
noise_generator = target_second_signal_generator(
|
81 |
noise_dir.as_posix(),
|
82 |
duration=args.duration,
|
|
|
77 |
noise_dir = Path(args.noise_dir)
|
78 |
speech_dir = Path(args.speech_dir)
|
79 |
|
80 |
+
train_dataset = Path(args.train_dataset)
|
81 |
+
valid_dataset = Path(args.valid_dataset)
|
82 |
+
train_dataset.parent.mkdir(parents=True, exist_ok=True)
|
83 |
+
valid_dataset.parent.mkdir(parents=True, exist_ok=True)
|
84 |
+
|
85 |
noise_generator = target_second_signal_generator(
|
86 |
noise_dir.as_posix(),
|
87 |
duration=args.duration,
|