Skip to content

Commit

Permalink
[egs] Add prefix when reading manifests due to recent lhotse changes (#…
Browse files Browse the repository at this point in the history
…382)

* [egs] Add prefix when reading manifests due to recent lhotse changes

* Fix wenetspeech

* Fix style issues
  • Loading branch information
entn-at authored May 23, 2022
1 parent 0e57b30 commit 8c5722d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion egs/aishell/ASR/local/compute_fbank_aishell.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def compute_fbank_aishell(num_mel_bins: int = 80):
"test",
)
manifests = read_manifests_if_cached(
dataset_parts=dataset_parts, output_dir=src_dir
prefix="aishell", dataset_parts=dataset_parts, output_dir=src_dir
)
assert manifests is not None

Expand Down
3 changes: 1 addition & 2 deletions egs/aishell/ASR/local/process_aidatatang_200zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def preprocess_aidatatang_200zh():

logging.info("Loading manifest")
manifests = read_manifests_if_cached(
dataset_parts=dataset_parts,
output_dir=src_dir,
dataset_parts=dataset_parts, output_dir=src_dir, prefix="aidatatang"
)
assert len(manifests) > 0

Expand Down
2 changes: 1 addition & 1 deletion egs/gigaspeech/ASR/local/compute_fbank_musan.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def compute_fbank_musan():
)

manifests = read_manifests_if_cached(
dataset_parts=dataset_parts, output_dir=src_dir
prefix="musan", dataset_parts=dataset_parts, output_dir=src_dir
)
assert manifests is not None

Expand Down
2 changes: 1 addition & 1 deletion egs/librispeech/ASR/local/compute_fbank_librispeech.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def compute_fbank_librispeech():
"train-other-500",
)
manifests = read_manifests_if_cached(
dataset_parts=dataset_parts, output_dir=src_dir
prefix="librispeech", dataset_parts=dataset_parts, output_dir=src_dir
)
assert manifests is not None

Expand Down
2 changes: 1 addition & 1 deletion egs/librispeech/ASR/local/compute_fbank_musan.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def compute_fbank_musan():
"noise",
)
manifests = read_manifests_if_cached(
dataset_parts=dataset_parts, output_dir=src_dir
prefix="musan", dataset_parts=dataset_parts, output_dir=src_dir
)
assert manifests is not None

Expand Down
2 changes: 1 addition & 1 deletion egs/spgispeech/ASR/local/compute_fbank_musan.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def compute_fbank_musan():
"noise",
)
manifests = read_manifests_if_cached(
dataset_parts=dataset_parts, output_dir=src_dir
prefix="musan", dataset_parts=dataset_parts, output_dir=src_dir
)
assert manifests is not None

Expand Down
2 changes: 1 addition & 1 deletion egs/tedlium3/ASR/local/compute_fbank_tedlium.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def compute_fbank_tedlium():
)

manifests = read_manifests_if_cached(
dataset_parts=dataset_parts, output_dir=src_dir
prefix="tedlium", dataset_parts=dataset_parts, output_dir=src_dir
)
assert manifests is not None

Expand Down
2 changes: 1 addition & 1 deletion egs/timit/ASR/local/compute_fbank_timit.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def compute_fbank_timit():
"TEST",
)
manifests = read_manifests_if_cached(
dataset_parts=dataset_parts, output_dir=src_dir
prefix="timit", dataset_parts=dataset_parts, output_dir=src_dir
)
assert manifests is not None

Expand Down
1 change: 1 addition & 0 deletions egs/wenetspeech/ASR/local/preprocess_wenetspeech.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def preprocess_wenet_speech():
dataset_parts=dataset_parts,
output_dir=src_dir,
suffix="jsonl.gz",
prefix="wenetspeech",
)
assert manifests is not None

Expand Down

0 comments on commit 8c5722d

Please sign in to comment.