From 8bac8fe9029280158ed43878a62299818124dd0c Mon Sep 17 00:00:00 2001 From: mrq Date: Mon, 5 Aug 2024 20:38:29 -0500 Subject: [PATCH] oops --- scripts/process_libritts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/process_libritts.py b/scripts/process_libritts.py index 5d8b06c..250c2d7 100755 --- a/scripts/process_libritts.py +++ b/scripts/process_libritts.py @@ -109,12 +109,15 @@ def process( txts = [] wavs = [] - for book_id in os.listdir(f'./{input_audio}/{dataset_name}/{speaker_id}'): + for book_id in os.listdir(f'./{input_audio}/{group_name}/{speaker_id}'): if not os.path.isdir(f'./{input_audio}/{group_name}/{speaker_id}/{book_id}'): print("Is not dir:", f'./{input_audio}/{group_name}/{speaker_id}/{book_id}') continue - for filename in os.listdir(f'./{input_audio}/{dataset_name}/{speaker_id}/{book_id}'): + for filename in os.listdir(f'./{input_audio}/{group_name}/{speaker_id}/{book_id}'): + if ".wav" not in filename: + continue + inpath = Path(f'./{input_audio}/{group_name}/{speaker_id}/{book_id}/{filename}') if not inpath.exists(): missing["audio"].append(str(inpath))