Skip to content

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

fbank online

游雁2676fcb85b6b
diff --git a/funasr/runtime/python/onnxruntime/rapid_paraformer/utils/frontend.py b/funasr/runtime/python/onnxruntime/rapid_paraformer/utils/frontend.py
index fb386de50..11a86445d 100644
--- a/funasr/runtime/python/onnxruntime/rapid_paraformer/utils/frontend.py
+++ b/funasr/runtime/python/onnxruntime/rapid_paraformer/utils/frontend.py
@@ -181,8 +181,9 @@ def test():
cmvn_file=cmvn_file,
**config['frontend_conf'],
)
- speech, _ = frontend.fbank_online(waveform)
- feat, feat_len = frontend.lfr_cmvn(speech)
+ speech, _ = frontend.fbank_online(waveform) #1d, (sample,), numpy
+ feat, feat_len = frontend.lfr_cmvn(speech) # 2d, (frame, 450), np.float32 -> torch, torch.from_numpy(), dtype, (1, frame, 450)
+
frontend.reset_status() # clear cache
return feat, feat_len