提交 99e28b8a 编写于 作者: H Hui Zhang

fix librispeech meta path

上级 8c9e1424
...@@ -114,7 +114,7 @@ def create_manifest(data_dir, manifest_path): ...@@ -114,7 +114,7 @@ def create_manifest(data_dir, manifest_path):
for line in json_lines: for line in json_lines:
out_file.write(line + '\n') out_file.write(line + '\n')
subset = os.path.splitext(manifest_path)[1] subset = manifest_path
with open(subset + '.meta', 'w') as f: with open(subset + '.meta', 'w') as f:
print(f"{subset}:", file=f) print(f"{subset}:", file=f)
print(f"{total_num} utts", file=f) print(f"{total_num} utts", file=f)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册