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':