mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
ae76dcd4f7
commit
122ab29aab
Binary file not shown.
@ -59,9 +59,9 @@ def prepare_vox(
|
||||
# )
|
||||
|
||||
manifests = {}
|
||||
spk_idx = spk_id.split('_')[1]
|
||||
|
||||
#dataset_parts = ["train", "dev", "test"]
|
||||
dataset_parts = [spk_idx]
|
||||
dataset_parts = [spk_id]
|
||||
if output_dir is not None:
|
||||
output_dir = Path(output_dir)
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
@ -81,9 +81,7 @@ def prepare_vox(
|
||||
#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 = [name.split('/')[-1].replace('.wav', '') for name in part_file_names]
|
||||
spk_idx = spk_id.split('_')[1]
|
||||
txt_path = os.path.join(corpus_dir, f"../{spk_idx}_texts")
|
||||
print(txt_path)
|
||||
txt_path = os.path.join(corpus_dir, f"../{spk_id}/texts")
|
||||
futures = []
|
||||
|
||||
for trans_path in tqdm(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user