add sampling rate parameter

This commit is contained in:
hnluo 2023-02-05 11:56:45 +08:00 committed by GitHub
parent f417739ef8
commit 3795e61b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -534,6 +534,7 @@ def inference_modelscope(
def _forward(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
@ -544,6 +545,7 @@ def inference_modelscope(
loader = ASRTask.build_streaming_iterator(
data_path_and_name_and_type,
dtype=dtype,
fs=fs,
batch_size=batch_size,
key_file=key_file,
num_workers=num_workers,