Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

bug fix

shixian.shi0766a89c8d4a
diff --git a/funasr/bin/tp_inference.py b/funasr/bin/tp_inference.py
index e374a227a..8c9c0f31b 100644
--- a/funasr/bin/tp_inference.py
+++ b/funasr/bin/tp_inference.py
@@ -18,7 +18,7 @@ from typeguard import check_argument_types
from funasr.fileio.datadir_writer import DatadirWriter
from funasr.datasets.preprocessor import LMPreprocessor
-from funasr.tasks.asr import ASRTaskAligner as ASRTask
+from funasr.tasks.asr import ASRTaskAligner_temp as ASRTask
from funasr.torch_utils.device_funcs import to_device
from funasr.torch_utils.set_all_random_seed import set_all_random_seed
from funasr.utils import config_argparse
diff --git a/funasr/tasks/asr.py b/funasr/tasks/asr.py
index 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):
@classmethod
def required_data_names(
cls, train: bool = True, inference: bool = False