mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add sampling rate parameter
This commit is contained in:
parent
16d3783a54
commit
aa456c5e44
@ -1783,6 +1783,7 @@ class AbsTask(ABC):
|
|||||||
collate_fn,
|
collate_fn,
|
||||||
key_file: str = None,
|
key_file: str = None,
|
||||||
batch_size: int = 1,
|
batch_size: int = 1,
|
||||||
|
fs: dict = None,
|
||||||
dtype: str = np.float32,
|
dtype: str = np.float32,
|
||||||
num_workers: int = 1,
|
num_workers: int = 1,
|
||||||
allow_variable_data_keys: bool = False,
|
allow_variable_data_keys: bool = False,
|
||||||
@ -1800,6 +1801,7 @@ class AbsTask(ABC):
|
|||||||
dataset = IterableESPnetDataset(
|
dataset = IterableESPnetDataset(
|
||||||
data_path_and_name_and_type,
|
data_path_and_name_and_type,
|
||||||
float_dtype=dtype,
|
float_dtype=dtype,
|
||||||
|
fs=fs,
|
||||||
preprocess=preprocess_fn,
|
preprocess=preprocess_fn,
|
||||||
key_file=key_file,
|
key_file=key_file,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user