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 frontend in pipeline
shixian.shi3610b3f48ad4
diff --git a/funasr/bin/tp_inference.py b/funasr/bin/tp_inference.pyindex 766f94f1c..7f9890f4a 100644--- a/funasr/bin/tp_inference.py+++ b/funasr/bin/tp_inference.py@@ -148,11 +148,11 @@ class SpeechText2Timestamp:# Input as audio signalif isinstance(speech, np.ndarray):speech = torch.tensor(speech)-if self.frontend is not None:feats, feats_len = self.frontend.forward(speech, speech_lengths)feats = to_device(feats, device=self.device)feats_len = feats_len.int()+ self.tp_model.frontend = Noneelse:feats = speechfeats_len = speech_lengths