From 055af63df38a00d1a4a5b48cdc7bc2056394fb62 Mon Sep 17 00:00:00 2001 From: YangZhou Date: Wed, 29 Jun 2022 16:58:15 +0800 Subject: [PATCH] fix feat_type bug --- paddlespeech/s2t/io/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/s2t/io/utility.py b/paddlespeech/s2t/io/utility.py index c08b5535a..e2cd1f4c3 100644 --- a/paddlespeech/s2t/io/utility.py +++ b/paddlespeech/s2t/io/utility.py @@ -93,7 +93,7 @@ def feat_type(filepath): if isinstance(filepath, BytesIO): return 'sound' - suffix = filepath.split(":")[0].split('.')[-1].lower() + suffix = filepath.split(":")[-1].split('.')[-1].lower() if suffix == 'ark': return 'mat' elif suffix == 'scp':