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
bug fix
shixian.shi0766a89c8d4a
diff --git a/funasr/bin/tp_inference.py b/funasr/bin/tp_inference.pyindex e374a227a..8c9c0f31b 100644--- a/funasr/bin/tp_inference.py+++ b/funasr/bin/tp_inference.py@@ -18,7 +18,7 @@ from typeguard import check_argument_typesfrom funasr.fileio.datadir_writer import DatadirWriterfrom funasr.datasets.preprocessor import LMPreprocessor-from funasr.tasks.asr import ASRTaskAligner as ASRTask+from funasr.tasks.asr import ASRTaskAligner_temp as ASRTaskfrom funasr.torch_utils.device_funcs import to_devicefrom funasr.torch_utils.set_all_random_seed import set_all_random_seedfrom funasr.utils import config_argparsediff --git a/funasr/tasks/asr.py b/funasr/tasks/asr.pyindex 13898a61d..05eace731 100644--- a/funasr/tasks/asr.py+++ b/funasr/tasks/asr.py@@ -1326,6 +1326,15 @@ class ASRTaskAligner(ASRTaskParaformer):assert check_return_type(model)return model+ @classmethod+ def required_data_names(+ cls, train: bool = True, inference: bool = False+ ) -> Tuple[str, ...]:+ retval = ("speech", "text")+ return retval+++class ASRTaskAligner(ASRTaskParaformer):@classmethoddef required_data_names(cls, train: bool = True, inference: bool = False