提交 b13630b1 编写于 作者: H huangyuxin

修复了librispeech和mini_libirspeech

上级 156e324b
......@@ -116,7 +116,8 @@ def create_manifest(data_dir, manifest_path):
subset = os.path.splitext(manifest_path)[1][1:]
manifest_dir = os.path.dirname(manifest_path)
meta_path = os.path.join(manifest_dir, dtype) + '.meta'
data_dir_name = os.path.split(data_dir)[-1]
meta_path = os.path.join(manifest_dir, data_dir_name) + '.meta'
with open(meta_path, 'w') as f:
print(f"{subset}:", file=f)
print(f"{total_num} utts", file=f)
......
......@@ -95,7 +95,8 @@ def create_manifest(data_dir, manifest_path):
subset = os.path.splitext(manifest_path)[1][1:]
manifest_dir = os.path.dirname(manifest_path)
meta_path = os.path.join(manifest_dir, dtype) + '.meta'
data_dir_name = os.path.split(data_dir)[-1]
meta_path = os.path.join(manifest_dir, data_dir_name) + '.meta'
with open(meta_path, 'w') as f:
print(f"{subset}:", 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.
先完成此消息的编辑!
想要评论请 注册