Merge pull request #333 from alibaba-damo-academy/dev_lhn

update
This commit is contained in:
chenmengzheAAA 2023-04-11 17:57:03 +08:00 committed by GitHub
commit 4776de6a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1582,10 +1582,11 @@ class AbsTask(ABC):
) -> AbsIterFactory:
assert check_argument_types()
if args.frontend_conf is not None and "fs" in args.frontend_conf:
dest_sample_rate = args.frontend_conf["fs"]
else:
dest_sample_rate = 16000
if hasattr(args, "frontend_conf"):
if args.frontend_conf is not None and "fs" in args.frontend_conf:
dest_sample_rate = args.frontend_conf["fs"]
else:
dest_sample_rate = 16000
dataset = ESPnetDataset(
iter_options.data_path_and_name_and_type,