From 9d01231fa69672fc7c9b4bf81ef466bb0189788c Mon Sep 17 00:00:00 2001
From: aky15 <ankeyu.aky@11.17.44.249>
Date: 星期三, 17 五月 2023 17:34:21 +0800
Subject: [PATCH] rnnt继承ASRTask

---
 funasr/datasets/small_datasets/dataset.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/funasr/datasets/small_datasets/dataset.py b/funasr/datasets/small_datasets/dataset.py
index 5d61d88..e14e4f1 100644
--- a/funasr/datasets/small_datasets/dataset.py
+++ b/funasr/datasets/small_datasets/dataset.py
@@ -9,6 +9,7 @@
 from typing import Collection
 from typing import Dict
 from typing import Mapping
+from typing import Optional
 from typing import Tuple
 from typing import Union
 
@@ -110,7 +111,7 @@
             float_dtype: str = "float32",
             int_dtype: str = "long",
             dest_sample_rate: int = 16000,
-            speed_perturb: tuple = None,
+            speed_perturb: Union[list, tuple] = None,
             mode: str = "train",
     ):
         assert check_argument_types()

--
Gitblit v1.9.1