from local
This commit is contained in:
parent
0f5eea55da
commit
37b28b694a
Binary file not shown.
@ -59,10 +59,9 @@ def prepare_vox(
|
|||||||
# )
|
# )
|
||||||
|
|
||||||
manifests = {}
|
manifests = {}
|
||||||
subset = spk_id.split('_')[0]
|
|
||||||
spk_idx = spk_id.split('_')[1]
|
|
||||||
#dataset_parts = ["train", "dev", "test"]
|
#dataset_parts = ["train", "dev", "test"]
|
||||||
dataset_parts = [spk_idx]
|
dataset_parts = [spk_id]
|
||||||
if output_dir is not None:
|
if output_dir is not None:
|
||||||
output_dir = Path(output_dir)
|
output_dir = Path(output_dir)
|
||||||
output_dir.mkdir(parents=True, exist_ok=True)
|
output_dir.mkdir(parents=True, exist_ok=True)
|
||||||
@ -82,8 +81,7 @@ def prepare_vox(
|
|||||||
#part_file_names = list(map(lambda x: x.strip('.wav'), os.listdir(part_path)))
|
#part_file_names = list(map(lambda x: x.strip('.wav'), os.listdir(part_path)))
|
||||||
part_file_names = sorted(glob.glob(str(part_path)+'/*.wav'))
|
part_file_names = sorted(glob.glob(str(part_path)+'/*.wav'))
|
||||||
part_file_names = [name.split('/')[-1].replace('.wav', '') for name in part_file_names]
|
part_file_names = [name.split('/')[-1].replace('.wav', '') for name in part_file_names]
|
||||||
txt_path = os.path.join(corpus_dir, f"../{spk_idx}_texts")
|
txt_path = os.path.join(corpus_dir, f"../{spk_id}/texts")
|
||||||
print(txt_path)
|
|
||||||
futures = []
|
futures = []
|
||||||
|
|
||||||
for trans_path in tqdm(
|
for trans_path in tqdm(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user