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
067d79a01c
commit
1519702a53
Binary file not shown.
@ -78,6 +78,7 @@ def prepare_vox(
|
|||||||
#part_path = Path(os.path.join(corpus_dir, "wavs", part))
|
#part_path = Path(os.path.join(corpus_dir, "wavs", part))
|
||||||
part_path = Path(os.path.join(corpus_dir, part))
|
part_path = Path(os.path.join(corpus_dir, part))
|
||||||
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)))
|
||||||
|
print(part_file_names)
|
||||||
txt_path = os.path.join(corpus_dir, "texts")
|
txt_path = os.path.join(corpus_dir, "texts")
|
||||||
print(part_path)
|
print(part_path)
|
||||||
print(txt_path)
|
print(txt_path)
|
||||||
@ -90,7 +91,6 @@ def prepare_vox(
|
|||||||
with open(trans_path) as f:
|
with open(trans_path) as f:
|
||||||
cur_file_name = trans_path.split('/')[-1].replace('.txt', '')
|
cur_file_name = trans_path.split('/')[-1].replace('.txt', '')
|
||||||
if cur_file_name not in part_file_names:
|
if cur_file_name not in part_file_names:
|
||||||
print('hi!')
|
|
||||||
continue
|
continue
|
||||||
for line in f:
|
for line in f:
|
||||||
futures.append(
|
futures.append(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user