Skip to content

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

amp pipeline

游雁b841635a5342
diff --git a/funasr/bin/asr_inference_paraformer.py b/funasr/bin/asr_inference_paraformer.py
index 055a17fe3..18d788e9f 100644
--- a/funasr/bin/asr_inference_paraformer.py
+++ b/funasr/bin/asr_inference_paraformer.py
@@ -337,7 +337,7 @@ class Speech2Text:
# assert check_return_type(results)
return results
-class Speech2TextExport(torch.nn.Module):
+class Speech2TextExport:
"""Speech2TextExport class
"""
@@ -416,7 +416,7 @@ class Speech2TextExport(torch.nn.Module):
self.asr_model = model
@torch.no_grad()
- def forward(
+ def __call__(
self, speech: Union[torch.Tensor, np.ndarray], speech_lengths: Union[torch.Tensor, np.ndarray] = None
):
"""Inference