Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
onnx runtime
游雁41e91414fa3b
diff --git a/funasr/runtime/python/onnxruntime/paraformer/rapid_paraformer/paraformer_onnx.py b/funasr/runtime/python/onnxruntime/paraformer/rapid_paraformer/paraformer_onnx.pyindex d51c6bf1b..64dbaf8ee 100644--- a/funasr/runtime/python/onnxruntime/paraformer/rapid_paraformer/paraformer_onnx.py+++ b/funasr/runtime/python/onnxruntime/paraformer/rapid_paraformer/paraformer_onnx.py@@ -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 = []