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
063099abd5
commit
ff81e4c403
Binary file not shown.
@ -81,9 +81,6 @@ def prepare_vox(
|
|||||||
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, "texts")
|
txt_path = os.path.join(corpus_dir, "texts")
|
||||||
print(part_file_names)
|
|
||||||
print(part_path)
|
|
||||||
print(txt_path)
|
|
||||||
futures = []
|
futures = []
|
||||||
|
|
||||||
for trans_path in tqdm(
|
for trans_path in tqdm(
|
||||||
@ -98,7 +95,6 @@ def prepare_vox(
|
|||||||
futures.append(
|
futures.append(
|
||||||
parse_utterance(part_path, trans_path + ' ' + line, alignments)
|
parse_utterance(part_path, trans_path + ' ' + line, alignments)
|
||||||
)
|
)
|
||||||
print(futures)
|
|
||||||
for future in tqdm(futures, desc="Processing", leave=False):
|
for future in tqdm(futures, desc="Processing", leave=False):
|
||||||
result = future
|
result = future
|
||||||
if result is None:
|
if result is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user