mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
onnx runtime
This commit is contained in:
parent
b841635a53
commit
41e91414fa
@ -41,8 +41,8 @@ class Paraformer():
|
||||
self.ort_infer = OrtInferSession(model_file, device_id)
|
||||
self.batch_size = batch_size
|
||||
|
||||
def __call__(self, wav_content: Union[str, np.ndarray, List[str]], fs: int = None) -> List:
|
||||
waveform_list = self.load_data(wav_content, fs)
|
||||
def __call__(self, wav_content: Union[str, np.ndarray, List[str]], **kwargs) -> List:
|
||||
waveform_list = self.load_data(wav_content, self.frontend.opts.samp_freq)
|
||||
waveform_nums = len(waveform_list)
|
||||
|
||||
asr_res = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user