Skip to content

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

export

游雁ee3f4e5236a1
diff --git a/funasr/runtime/python/onnxruntime/funasr_onnx/vad_bin.py b/funasr/runtime/python/onnxruntime/funasr_onnx/vad_bin.py
index 9568ac981..0b7ecffc0 100644
--- a/funasr/runtime/python/onnxruntime/funasr_onnx/vad_bin.py
+++ b/funasr/runtime/python/onnxruntime/funasr_onnx/vad_bin.py
@@ -53,7 +53,7 @@ class Fsmn_vad():
proj_dim = self.encoder_conf["proj_dim"]
lorder = self.encoder_conf["lorder"]
for i in range(fsmn_layers):
- cache = np.random.rand(1, proj_dim, lorder-1, 1).astype(np.float32)
+ cache = np.zeros(1, proj_dim, lorder-1, 1).astype(np.float32)
in_cache.append(cache)
return in_cache