mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 08:34:19 +00:00
updated
This commit is contained in:
parent
7feaa6185d
commit
3672d23631
@ -97,7 +97,7 @@ def compute_fbank_switchboard(
|
||||
prefix = dir_name
|
||||
suffix = "jsonl.gz"
|
||||
manifests = {
|
||||
"eval2000": "data/manifests/eval2000/eval2000_cuts_all.jsonl.gz",
|
||||
"eval2000": "data/manifests/eval2000/eval2000_cuts_all_trimmed.jsonl.gz",
|
||||
}
|
||||
assert manifests is not None
|
||||
|
||||
@ -111,12 +111,7 @@ def compute_fbank_switchboard(
|
||||
logging.info(f"{prefix} already exists - skipping.")
|
||||
return
|
||||
logging.info(f"Processing {prefix}")
|
||||
cut_set = (
|
||||
CutSet.from_file(manifests[prefix])
|
||||
.resample(16000)
|
||||
.to_eager()
|
||||
.filter(lambda c: c.duration > 0.5)
|
||||
)
|
||||
cut_set = CutSet.from_file(manifests[prefix]).resample(16000)
|
||||
|
||||
cut_set = cut_set.compute_and_store_features(
|
||||
extractor=extractor,
|
||||
|
Loading…
x
Reference in New Issue
Block a user