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
update
嘉渊ba3d455b21ca
diff --git a/funasr/bin/asr_inference_launch.py b/funasr/bin/asr_inference_launch.pyindex 81513aea8..5740f92a0 100644--- a/funasr/bin/asr_inference_launch.py+++ b/funasr/bin/asr_inference_launch.py@@ -1349,10 +1349,7 @@ def inference_transducer(left_context=left_context,right_context=right_context,)- speech2text = Speech2TextTransducer.from_pretrained(- model_tag=model_tag,- **speech2text_kwargs,- )+ speech2text = Speech2TextTransducer(**speech2text_kwargs)def _forward(data_path_and_name_and_type,raw_inputs: Union[np.ndarray, torch.Tensor] = None,diff --git a/funasr/bin/diar_inference_launch.py b/funasr/bin/diar_inference_launch.pyindex 03c9659b5..c0651375e 100755--- a/funasr/bin/diar_inference_launch.py+++ b/funasr/bin/diar_inference_launch.py@@ -92,10 +92,7 @@ def inference_sond(embedding_node="resnet1_dense")logging.info("speech2xvector_kwargs: {}".format(speech2xvector_kwargs))- speech2xvector = Speech2Xvector.from_pretrained(- model_tag=model_tag,- **speech2xvector_kwargs,- )+ speech2xvector = Speech2Xvector(**speech2xvector_kwargs)speech2xvector.sv_model.eval()# 2b. Build speech2diar@@ -109,10 +106,7 @@ def inference_sond(dur_threshold=dur_threshold,)logging.info("speech2diarization_kwargs: {}".format(speech2diar_kwargs))- speech2diar = Speech2DiarizationSOND.from_pretrained(- model_tag=model_tag,- **speech2diar_kwargs,- )+ speech2diar = Speech2DiarizationSOND(**speech2diar_kwargs)speech2diar.diar_model.eval()def output_results_str(results: dict, uttid: str):@@ -257,10 +251,7 @@ def inference_eend(dtype=dtype,)logging.info("speech2diarization_kwargs: {}".format(speech2diar_kwargs))- speech2diar = Speech2DiarizationEEND.from_pretrained(- model_tag=model_tag,- **speech2diar_kwargs,- )+ speech2diar = Speech2DiarizationEEND(**speech2diar_kwargs)speech2diar.diar_model.eval()def output_results_str(results: dict, uttid: str):