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
cab7bdaa16
commit
16d3783a54
@ -251,6 +251,7 @@ def inference_modelscope(
|
||||
dtype: str = "float32",
|
||||
seed: int = 0,
|
||||
num_workers: int = 1,
|
||||
param_dict: dict = None,
|
||||
**kwargs,
|
||||
):
|
||||
assert check_argument_types()
|
||||
@ -287,6 +288,8 @@ def inference_modelscope(
|
||||
data_path_and_name_and_type,
|
||||
raw_inputs: Union[np.ndarray, torch.Tensor] = None,
|
||||
output_dir_v2: Optional[str] = None,
|
||||
fs: dict = None,
|
||||
param_dict: dict = None,
|
||||
):
|
||||
# 3. Build data-iterator
|
||||
loader = VADTask.build_streaming_iterator(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user