From 5346545d5256018666ec4f16c84f1b2acae5f431 Mon Sep 17 00:00:00 2001 From: huangyuxin Date: Thu, 29 Jul 2021 09:09:56 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86librispeech=E5=92=8C?= =?UTF-8?q?mini=5Flibirspeech?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/dataset/librispeech/librispeech.py | 3 ++- examples/dataset/mini_librispeech/mini_librispeech.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/dataset/librispeech/librispeech.py b/examples/dataset/librispeech/librispeech.py index 888521325..e85bbb3aa 100644 --- a/examples/dataset/librispeech/librispeech.py +++ b/examples/dataset/librispeech/librispeech.py @@ -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) diff --git a/examples/dataset/mini_librispeech/mini_librispeech.py b/examples/dataset/mini_librispeech/mini_librispeech.py index 0915e5b30..65fee81a7 100644 --- a/examples/dataset/mini_librispeech/mini_librispeech.py +++ b/examples/dataset/mini_librispeech/mini_librispeech.py @@ -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)