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
04a21c331f
commit
50d14f3de5
Binary file not shown.
@ -77,7 +77,9 @@ def prepare_vox(
|
||||
supervisions = []
|
||||
#part_path = Path(os.path.join(corpus_dir, "wavs", 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)))
|
||||
part_file_names = sorted(glob.glob(part_path+'/*.wav'))
|
||||
part_file_names = [name.split('/')[-1].replace('.wav', '') for name in part_file_names]
|
||||
txt_path = os.path.join(corpus_dir, "texts")
|
||||
print(part_file_names)
|
||||
print(part_path)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user